docker-mailserver provides a production-ready, all-in-one email server in a single container, focused on simplicity and maintainability. It bundles the core mail stack—Postfix for SMTP and Dovecot for IMAP/POP3—then layers in optional anti-spam and anti-virus services, DKIM/DMARC signing and verification, and rate-/abuse-protection tooling. The project emphasizes secure defaults while exposing configuration via environment variables and mounted files, allowing you to define users, aliases, domains, and sieve filters without rebuilding images. It integrates smoothly with Let’s Encrypt for TLS, supports LDAP and other auth backends, and ships with scripts to validate DNS records and common misconfigurations. Persistent volumes keep mailboxes and state, making upgrades straightforward and rollbacks less risky. Administrators appreciate the clear docs, test suite, and opinionated conventions that help avoid fragile bespoke setups.
Features
- Support for SMTP, IMAP, POP3, LDAP authentication and user management
- Integrated antispam & antivirus tools (Rspamd, SpamAssassin, ClamAV, etc.)
- Easy configuration via environment variables and overrideable config files in container volumes
- No SQL database requirement by default; simpler versioned configs and fewer moving parts
- Supports modern email authentication and deliverability standards: DKIM, DMARC, SPF, TLS etc.
- Extensible with LDAP, fetchmail/getmail for mail retrieval, optional features like quotas, sieve filters etc.