Description
Docker Mailserver, or DMS, is a full mail server that runs inside a container. It bundles the parts a working mail system needs: SMTP for sending, IMAP for reading, LDAP support for accounts, and anti-spam and anti-virus filtering. The project describes it as production-ready but simple, because it is driven by configuration files only and needs no SQL database. Setup is based on a Docker or Compose file, with environment variables for the main options and separate configuration for accounts, DKIM, DMARC and SPF records, TLS certificates and Fail2Ban. The documentation covers account management through a file-based provisioner or LDAP, email forwarding and relay hosts, Sieve filtering, fetching mail from other accounts, IPv6 and Podman, Kubernetes, and advanced changes to the Dovecot and Postfix configs. Its examples include a basic installation, mailbox compression and running the server behind a proxy. The documentation is versioned, so you should pick the version that matches the image you run. The project is MIT-licensed and its source is on GitHub.…
Highlights
- Full mail stack: SMTP, IMAP, LDAP, anti-spam and anti-virus
- Runs in a container, configured through files and variables
- No SQL database needed
- DKIM, DMARC, SPF, MTA-STS and TLS setup
- Sieve filtering, forwarding and relay hosts
- Versioned documentation that matches each image
Ratings & Reviews
No ratings yet
Be the first to rate docker-mailserver.
People also visit

Mail-in-a-Box
Turns any Ubuntu server into a fully functional mail server with one command
Mailcow
Mail server suite based on Dovecot, Postfix and other open source software
Maddy Mail Server
All-in-one mail server that implements SMTP (both MTA and MX) and IMAP
docker-mailserver FAQ
What is Docker Mailserver?
A complete mail server packaged as a Docker container, covering SMTP, IMAP, LDAP, anti-spam and anti-virus, with settings kept in configuration files.
Is it free?
Yes. The project is open source under the MIT license.
Does it need a database?
No. The project says it uses only configuration files and no SQL database.
How do I manage user accounts?
The docs describe account management through a file-based provisioner or an LDAP service, plus master accounts and OAuth2 authentication.
Can I send mail through another provider?
Yes. The docs cover relay hosts, including AWS SES and Gmail as a relay host, and inbound and outbound relay setups.
Which email records does it help with?
The docs include guides for DKIM, DMARC and SPF, plus MTA-STS, auto-discovery and SSL/TLS setup.
Does it support Kubernetes or Podman?
The documentation includes pages for running it on Kubernetes and with Podman, as well as IPv6 configuration.
What are the best docker-mailserver alternatives?
Popular alternatives to docker-mailserver include Mailu, Docker Mailserver and Mail-in-a-Box. See all docker-mailserver alternatives

