Docker Mailserver packs SMTP, IMAP, spam filtering, and related services into one container image. Configuration relies on files and environment variables rather than a SQL database.
Overview
Docker Mailserver (DMS) targets operators who want a self-contained mail appliance on their own hardware. It bundles mail delivery and retrieval with anti-spam and anti-virus tooling, optional LDAP integration, and flexible TLS certificate handling in a single Docker image.
The design favors versioned configuration files and environment variables instead of a database layer, which the project describes as easier to deploy and maintain. A setup script helps with initial configuration and ongoing administration tasks.
Documentation covers Docker Compose examples, environment-driven options, optional auto-generated config paths, and hooks such as a user-patches script that runs on container startup for custom changes. Debugging and FAQ material walks through typical mail-server integration steps.
Operators are expected to understand that a mail stack remains complex even when containerized, and may need to inspect the running container while tuning Postfix, Dovecot, and related components.
Key features
- SMTP and IMAP in one image
- Rspamd anti-spam integration
- Anti-virus scanning support
- Optional LDAP authentication
- Flexible TLS certificate setup
- File-based configuration only
- setup.sh administration helper
- Startup user-patches.sh hook
Use cases
- Self-hosted domain email on a VPS
- Small team mail without external SaaS
- Learning Postfix and Dovecot in Docker
- Homelab mail with compose templates
Does the same job as
Docker Mailserver doesn't name these products itself, but its own description shows it does the same job.