mail_service
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mail_service [2017/10/17 14:48] – /* Handling spam */ _qaisjp | mail_service [2026/09/26 22:49] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{OODNotice}} | ||
| - | |||
| - | |||
| - | |||
| - | ====== Current setup ====== | ||
| - | |||
| - | |||
| - | * The main mail server is on [[isolus]], a virtual host. | ||
| - | * We're using postfix as our MTA, and the default MDA is maildrop. | ||
| - | * We [[greylist]] | ||
| - | * We also use the janet rbl | ||
| - | * Users have the option to use [[spamassassin]] for spam filtering. | ||
| - | * [[lists_service]] | ||
| - | |||
| - | |||
| - | ====== Handling spam ====== | ||
| - | |||
| - | |||
| - | - ssh into the mail host (see above) | ||
| - | - STOP POSTFIX by doing `postfix stop` - THIS STOPS ALL MAIL BEING SENT FROM ALL USERS | ||
| - | - Read `/ | ||
| - | - Determine who is sending the spam (spam lines should contain the from field) | ||
| - | - Log in to the gateway server, and change their password to something very random (sudo passwd < | ||
| - | - Now more spam mail cannot be sent through that user (because nobody can access the account). We need to now clear the queue. | ||
| - | - Edit the `purge.sh` script in the root folder of the mail host | ||
| - | - Change the username in the script. | ||
| - | - Run the script. | ||
| - | - Check `tail -f / | ||
| - | - When `tail` stops saying things are being removed, or when the process `awk` finishes, start postfix again | ||
| - | - start postfix by doing `postfix start` | ||
| - | |||
| - | |||
| - | ====== Usage Guide ====== | ||
| - | |||
| - | Tardis currently supports the following methods of accessing your email account: | ||
| - | ** POP3 | ||
| - | **\\ | ||
| - | * Server: < | ||
| - | * Secure Connection: TLS or SSL | ||
| - | * Username: Your Tardis username | ||
| - | |||
| - | ** IMAP | ||
| - | **\\ | ||
| - | * Server: < | ||
| - | * Secure Connection: TLS or SSL | ||
| - | * Username: Your Tardis username | ||
| - | |||
| - | ** Webmail | ||
| - | **\\ We provide RoundCube Webmail at https:// | ||
| - | |||
| - | ** Via SSH | ||
| - | **\\ mutt and pine are both currently available on the shell server at < | ||
| - | |||
| - | ** Mail Submission | ||
| - | **\\ You can now send mail via Tardis' | ||
| - | | ||
| - | * Server: mailhost.tardis.ed.ac.uk | ||
| - | * Secure Connection: TLS | ||
| - | * Server port: 587 | ||
| - | * Username: Your Tardis username | ||
| - | |||
| - | You may need to install the [[http:// | ||
| - | |||
| - | |||
| - | ===== Delivery and Filtering ===== | ||
| - | |||
| - | Mail can be delivered by procmail or maildrop, (default) and can be spam filtered by spamassassin. Support documentation for these applications are currently unavailable, | ||
| - | |||
| - | |||
| - | ===== Troubleshooting ===== | ||
| - | |||
| - | * IMAP can fail to connect if you've deleted your Maildir folder. To recreate it, run '' | ||
| - | |||
| - | |||
| - | ====== Admin ====== | ||
| - | |||
| - | To change aliases (eg sysmans): edit / | ||
| - | |||
| - | To change virtual lookup tables (eg gamesoc emails): edit / | ||
| - | |||
| - | |||
| - | ====== Breaking mail loops ====== | ||
| - | |||
| - | |||
| - | (To prevent most of the loops between ecartis and majordomo installations any mail to listar@tardis or majordomo@tardis which came from majordomo-owner@... is now sent to support instead, using a small procmail filter.) | ||
| - | |||
| - | Suppose ecartis gets into a bunfight with majordomo-owner@example.com, | ||
| - | | ||
| - | majordomo-owner@example.com HOLD mail loop | ||
| - | |||
| - | The bit after < | ||
| - | | ||
| - | postmap access | ||
| - | |||
| - | to get postfix to pick up the change. | ||
| - | |||
| - | When a mail arrives, it gets put in the special hold queue. | ||
| - | | ||
| - | root@mccoy:/ | ||
| - | root@mccoy:/ | ||
| - | [...] | ||
| - | | ||
| - | ./8: | ||
| - | 886702B036 | ||
| - | | ||
| - | [...] | ||
| - | root@mccoy:/ | ||
| - | [The message, plus a bit of header info...] | ||
| - | root@mccoy:/ | ||
| - | |||
| - | |||
| - | If it's real mail, you can release it with < | ||
| - | You can remove the hold from < | ||
| - | |||
| - | |||
| - | ====== Whitelisting and blacklisting ====== | ||
| - | |||
| - | |||
| - | If mail from an external source is being rejected by postfix (say, because they' | ||
| - | |||
| - | You can also blacklist addresses and hosts using these files. | ||
| - | |||
| - | |||
| - | ====== Webmail ====== | ||
| - | |||
| - | |||
| - | Webmail (horde2) is available from [[https:// | ||
| - | ''/ | ||
| - | eventually kill itself and webmail will start rejecting logins. In this case, restart it with: | ||
| - | / | ||
| - | |||
| - | |||
| - | ====== Wish list ====== | ||
| - | |||
| - | * Amongst other things, we really really really need a better mailing list whatnot than ecartis. It occasionally completely garbles emails, and it doesn' | ||
| - | |||
| - | * Perhaps we should use [[http:// | ||
| - | |||
| - | |||
mail_service.1508251681.txt.gz · Last modified: (external edit)
