OpenSource-Hub
D

docker-mailserver

18.2k stars·System Optimization·SHA-256 checksum verified

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

dockermail-serverself-hostedpostfixdovecotspam-filterantivirusopensource

Getting Started

1

Download installer

Click the button above to download the installer for your system

2

Install the software

Double-click the downloaded installer and follow the prompts

3

Modify domain and timezone in docker-compose.yml per official docs

4

Run `./setup.sh email add admin@yourdomain.com` to create first mailbox

5

Start container with `docker-compose up -d`

Install Guide
  1. Modify domain and timezone in docker-compose.yml per official docs
  2. Run `./setup.sh email add admin@yourdomain.com` to create first mailbox
  3. Start container with `docker-compose up -d`
File Integrity

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 Source
Environment Guide

Uninstall 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.

Project Info
LicenseMIT
Last Updated2026-06-25 17:50:15
GitHub RepositoryOfficial Website

Having issues? Check the FAQ below

4 FAQs

Similar Projects