docker-mailserver
Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container. Only configuration files, no SQL database.
What is docker-mailserver?
docker-mailserver is a free and open-source self-hosted email complete solutions. It's written mainly in Shell and released under the MIT license. The project has 19.8K stars on GitHub and 2.1K forks, and its last commit landed 4 days ago. Our maintenance health score is 97/100 (thriving). It can be deployed with Docker.
Replace your SaaS with docker-mailserver
docker-mailserver is a popular self-hosted alternative to:
How to self-host docker-mailserver
- 1. Get a server. A $5/month VPS or any always-on machine at home works for most single-user setups.
- 2. Install it. docker-mailserver ships Docker images — grab the
docker-compose.ymlfrom the repository and rundocker compose up -d. - 3. Add HTTPS. Put it behind Caddy, Traefik or Nginx Proxy Manager.
- 4. Back up. Schedule backups of its data volume and database — self-hosting means you own recovery too.
docker-mailserver FAQ
Is docker-mailserver free?
Yes. docker-mailserver is open-source (MIT), so you can download, self-host and modify it for free. You only pay for the server you run it on.
How do I self-host docker-mailserver?
The quickest route is Docker: docker-mailserver ships container images, so a single docker-compose file on any Linux VPS or home server gets you running. Supported platforms/stacks: Docker. Put it behind a reverse proxy such as Caddy, Traefik or Nginx Proxy Manager for HTTPS, and back up its data volume regularly.
Is docker-mailserver still maintained?
docker-mailserver's last commit was 4 days ago and its latest release (v17.0.0) shipped 19 days ago. Its health score is 97/100, which we rate as “Thriving”.
What are the best alternatives to docker-mailserver?
Popular alternatives to docker-mailserver include Modoboa (★ 3.5K), Postal (★ 17K), Stalwart Mail Server (★ 16.1K), Mail-in-a-Box (★ 15.5K), Maddy Mail Server (★ 6.1K). Compare them side by side on this page.
Can docker-mailserver replace Gmail?
Yes — docker-mailserver is one of the most popular self-hosted alternatives to Gmail for your own email server. Self-hosting keeps your data on your own server and can save around $360/year versus a typical Gmail plan (5 users × $6).
docker-mailserver alternatives
All email complete solutions →Modoboa is a mail hosting and management platform including a modern and simplified Web User Interface.
★ 3.5KPythonISCThrivingA complete and fully featured mail server for use by websites & web servers.
★ 17KRubyMITThrivingAll-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features.
★ 16.1KRustAGPL-3.0ThrivingTurns any Ubuntu server into a fully functional mail server with one command.
★ 15.5KPythonCC0-1.0ThrivingAll-in-one mail server that implements SMTP (both MTA and MX) and IMAP. Replaces Postfix, Dovecot, OpenDKIM, OpenSPF, OpenDMARC with…
★ 6.1KGoGPL-3.0ThrivingOpen source email alias solution to protect your email address. Comes with browser extensions and mobile apps.
★ 7.2KPythonMITThrivingSelf-hosted JMAP webmail for Stalwart Mail Server. Mail, calendar, contacts, and files in one client.
★ 1.5KTypeScriptThriving