Configuration Summary
Here is an example configuration layout for the domain 'example.com'
- /srv/example.com/mailboxes
- This is where individual mailboxes are defined.
- /srv/example.com/mailboxes/alice
- Mail will be accepted for the email address alice@example.com.
- /srv/example.com/mailboxes/alice/Maildir
- This is where the email for alice@example.com will be delivered. It will be created automatically upon receipt of the first message to that address.
- /srv/example.com/mailboxes/alice/password
- File containing the password for alice@example.com allowing her to collect her email over IMAP/POP3, and relay email using SMTP. Her username is the same as her email address.
- /srv/example.com/mailboxes/bob/forward
- File containing either a comma-separated list of addresses, or an Exim filter. All mail addressed to bob@example.com will be forwarded to the list of addresses, or processed by the filter. See Forwarding Email for more information.
- /srv/example.com/config/default_forward
- File containing either a comma-separated list of addresses, or an Exim filter. All mail addressed to the domain example.com for local parts without directories under mailboxes will be forwarded to this address or processed by this filter. See Forwarding Email for more information.
- /srv/example.com/config/antispam
- If this file is present, then all email for the domain example.com will be scanned by SpamAssassin to determine whether it is spam. If it is spam, it will be rejected. If that file beings with the word tag, mail will never be rejected, just tagged as usual. See Scanning Email for more information.
- /srv/example.com/config/antivirus
- If this file is present, then all email for the domain example.com will be scanned for viruses by ClamAV. A message is determined to contain a virus, it will be rejected. If that file beings with the word tag, mail will never be rejected, just tagged. See Scanning Email for more information.
- /srv/example.com/config/sbl.spamhaus.org
- Reject mail for this domain if the sending machines's IP is listed in the Spamhaus Block List.
- /srv/example.com/config/xbl.spamhaus.org
- Reject mail for this domain if the sending machines's IP is listed in the Spamhaus Exploits Block List.
- /srv/example.com/config/pbl.spamhaus.org
- Reject mail for this domain if the sending machines's IP is listed in the Spamhaus Policy Block List.
- /srv/example.com/config/sbl-xbl.spamhaus.org
- Reject mail for this domain if the sending machines's IP is listed in either the Spamhaus or the Exploits block lists.
- /srv/example.com/config/zen.spamhaus.org
- Reject mail for this domain if the sending machines's IP is listed in the Spamhaus Zen Block List, which is a combination of the Spamhaus, Exploits, and Policy block lists.
Port Configuration
The mail servers have been set up with standard port assignments as follows.
| Service | Encryption? | Port |
| POP3 | Optional | 110 |
| IMAP | Optional | 143 |
| SMTP | Optional | 25 or 587 |
| POP3 | Yes | 995 |
| IMAP | Yes | 993 |
| SMTP | Yes | 465 |
To use the optional encryption for SMTP on port 25 or 587, "TLS encryption, if available" should be checked in the mail client. See Configuring Mail Clients for more information about this.
