D

docker-mailserver

A production-ready full-featured mail server stack running in a single Docker container.

About docker-mailserver

docker-mailserver is a complete email server that bundles Postfix, Dovecot, Amavis, SpamAssassin, and other components into one Docker image. You spin up one container and get SMTP, IMAP, POP3, antivirus, spam filtering, and optional webmail. It handles virtual domains, multiple users, and TLS certificates automatically via Let's Encrypt.

Configuration relies on environment variables and simple config files mounted as volumes. It supports LDAP and OAuth2 authentication, sieve filtering, and DMARC/DKIM signing. The project runs on any Linux host with Docker, works with Docker Compose, and has a large library of community examples. The image is built on Alpine Linux for a small footprint.

This is an open source project maintained by volunteers. It fits small teams, homelab operators, or anyone who wants a self-hosted mail server without juggling eight separate daemons. The documentation is thorough and the GitHub repo is actively maintained.
Email Servers

Quick Facts

Pricing
Free
License
Open Source
Platform
Linux
Version
14.0.0
Developer
docker-mailserver community