UPDATE:
My first book describes a more elaborate setup, including LDAP authentication, and a lot more (firewall, DNS, Apache, Nginx, databases, synchronisation of files, calendars and address books, etc.; including many examples for FreeBSD, Debian and CentOS).
en: Practical Internet Server Configuration
fr: Installation et configuration d’un serveur internet
nl: Configuratie van een internetserver
After having depended on my friends for a few years, for web and email hosting, I recently acquired a private server again. In this HOWTO I document the entire mail setup.
At the end of this article, I will have a mail server that does:
- Postfix MTA (Mail Transfer Agent)
- Dovecot IMAP (Internet Message Access Protocol)
- Let’s Encrypt (SSL certificates)
- Dovecot SASL (Simple Authentication and Security Layer)
- mail accounts (partly) separated from system accounts
- Dovecot LDA (Local Delivery Agent)
- Sieve / ManageSieve
- Greylisting
- RBLs (Real-time Blackhole Lists)
- Bogofilter (spam filter)
- ClamAV (virus scanner)
- SPF (Sender Policy Framework)
- DKIM (DomainKeys Identified Mail)
- and more…
Just so you know that there’s more to mail than just typing a text and hitting the Send button…
Currently my server only serves 1 user with 3 domains. But with the setup I describe here, it is extremely simple to upgrade that to many users running many domains.
This tutorial is not for the complete layman, but should be comprehensible for those who have played around with Linux and its services and command line a bit. I have tried to make it interesting and useful for both the beginning and the experienced sysadmin.
Corrections, clarifications, supplements and typos are welcomed at tuto.mailserver@ohreally.nl.
Spam is not, as you will understand after reading this article.
Read More