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.

GitHub stars
19,767
License
MIT
Latest release
v17.0.0
5 November 2026
Last commit
18 November 2026
Runs on
Docker

Commits per month, last 12 months

138 commits

Replaces

Paid products docker-mailserver can stand in for.

How to self-host docker-mailserver

docker-mailserver runs on Docker. The project's own install guide is the place to start; most people put it on a small server with Docker and a reverse proxy for HTTPS.

  1. Get a server: a home server, a VPS, or a managed app host.
  2. Install it the way the project's docs describe, usually with Docker Compose.
  3. Put it behind HTTPS and set up backups before you add real data.
  4. Update it regularly. Watch the project's releases.

New to self-hosting? Start with the beginner's guide.

Similar apps

  • Postal

    Complete and fully featured mail server for use by websites & web servers.

    17k stars
  • Stalwart Mail Server

    All-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features.

    16k stars
  • Mail-in-a-Box

    Turns any Ubuntu server into a fully functional mail server with one command.

    15.5k stars
  • Mailcow

    Mail server suite based on Dovecot, Postfix and other software, that provides a modern Web UI for administration.

    13.8k stars
  • Mailu

    Simple yet full-featured mail server as a set of Docker images.

    7.6k stars
  • SimpleLogin

    Email alias solution to protect your email address. Comes with browser extensions and mobile apps.

    7.1k stars

Guides that cover it

Questions

Is docker-mailserver free?

Yes. docker-mailserver is open source under the MIT license, so you can use it without paying for a license. You pay only for the server it runs on.

Can I self-host docker-mailserver?

Yes. docker-mailserver runs on Docker. Follow the install guide in the project's documentation, or use a host that installs it for you.

What does docker-mailserver replace?

People use docker-mailserver instead of Gmail.

Is docker-mailserver still maintained?

The last change to docker-mailserver's code was on 18 November 2026, with 138 commits in the last 12 months.

Topics

Communication - Email - Complete Solutions

App data from awesome-selfhosted (CC BY-SA 3.0), stars and activity from GitHub.