docker-mailserver
A production-ready, full-stack but simple containerized mail server (SMTP, IMAP, LDAP, anti-spam, anti-virus, etc.) that uses only configuration files without a SQL database.
Smart Download
Visit Project Homepage
No installer available yet — head to the source repository
A full-stack containerized mail server with only config files, no database.
Core Features
- Integrates Postfix, Dovecot, Rspamd, ClamAV, OpenDKIM, and more
- Plain text config files - no SQL database, Git-friendly
- Supports LDAP and OAuth2 authentication
- Built-in spam filtering, antivirus, DKIM/DMARC
- Auto-renew Let's Encrypt certificates or self-signed
What It Can't Do
- •Email setup requires careful DNS configuration; beginners should read the full docs. 2. Default spam settings may block legitimate emails; tune rules as needed. 3. Always back up config and data before upgrades; config format may change between versions. 4. Pin a specific image version in production instead of using 'latest'. 5. Lighter than Mailcow or iRedMail, but debugging logs demand familiarity with each service.
Use Cases
- Self-hosted email for individuals or small teams
- Developers who need email on their own domain
- Organizations prioritizing privacy and data control
Docker Mailserver provides a complete, production-grade email infrastructure packaged as a single Docker container. It integrates Postfix (SMTP), Dovecot (IMAP/POP3), Rspamd, SpamAssassin, ClamAV, OpenDKIM, OpenDMARC, Fail2ban, and many other services. All configuration is done via plain text files, making it easy to version control, deploy, and upgrade. Originally created by Tomav, the project is now maintained by volunteers. It supports LDAP, OAuth2, multiple authentication backends, and certificate management (Let's Encrypt, self-signed). Designed for simplicity and reliability, it's a popular choice for self-hosted email.
Tags
Getting Started
Download installer
Click the button above to download the installer for your system
Install the software
Double-click the downloaded installer and follow the prompts
Modify domain and timezone in docker-compose.yml per official docs
Run `./setup.sh email add admin@yourdomain.com` to create first mailbox
Start container with `docker-compose up -d`
- Modify domain and timezone in docker-compose.yml per official docs
- Run `./setup.sh email add admin@yourdomain.com` to create first mailbox
- Start container with `docker-compose up -d`
Checksum not available
This project has not published a SHA-256 checksum on its GitHub Release page
SHA256 Checksum
No checksum available
Download directly from GitHub Releases and verify file integrity yourself
All SHA-256 checksums on this platform are extracted from the project's official GitHub Release page, without any modification. You can independently verify them on the GitHub Releases page.
Open Source Transparency
View GitHub SourceUninstall Info
Stop the container: docker-compose down. Delete the data directory (e.g., docker-data/dms) and docker-compose.yml to completely remove. Back up emails first if needed.
No Extra Dependencies
Ready to use after download. No additional runtime required.
Having issues? Check the FAQ below
4 FAQs
Similar Projects
Huginn
Huginn lets you build agents that automate online tasks. Events propagate through a directed graph. Monitor web, Twitter, email, and more.
RSSHub
RSSHub is the world's largest open-source RSS network. It generates RSS feeds from virtually any website, with over 5,000 instances and a thriving community. Perfect for aggregating social media, news, blogs, and more.
Puter
An open-source internet computer that lets you access all your files, apps, and games from anywhere, with self-hosting for full control.