# docker-mailserver

> Production-ready fullstack but simple mail server running inside a container

Source: https://talira.ai/catalog/docker-mailserver-esy56gxp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure
- Categories: [communication / email / mail servers](https://talira.ai/categories/communication/email/mail-servers)
- Platforms: docker, kubernetes[^2]
- Licence: MIT[^1]
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Backed by: [Docker Mailserver](https://talira.ai/orgs/docker-mailserver.md)

docker-mailserver (DMS) is a complete mail server in one container image, configured only through files and environment variables, with no SQL database. It bundles Postfix for SMTP, Dovecot for IMAP and POP3 with SASL, LDAP, Sieve filters and quotas, Rspamd, Amavis, SpamAssassin, Postscreen and Postgrey against spam, ClamAV with automatic updates against viruses, OpenDKIM and OpenDMARC for signing and checking mail, Fail2ban, and Fetchmail and Getmail6 to collect mail from other accounts, with flexible TLS certificate support. A setup script adds accounts and aliases and handles maintenance.

## Links

- Website: https://docker-mailserver.github.io/docker-mailserver/latest/
- GitHub: https://github.com/docker-mailserver/docker-mailserver
- Docs: https://docker-mailserver.github.io/docker-mailserver/latest/

## Problems it solves

- run my own mail server for my domain without setting up Postfix and Dovecot by hand
- a self-hosted email server in Docker configured with plain files instead of a database
- host email for a few domains with spam and virus filtering on my own VPS
- set up DKIM and DMARC on a self-hosted mail server
- pull mail from old accounts into my self-hosted mailbox
- an IMAP and SMTP server that authenticates users against LDAP

## Features

- Postfix SMTP with Postscreen and Postgrey
- Dovecot IMAP and POP3 with SASL, LDAP, Sieve and quotas
- Rspamd, Amavis and SpamAssassin spam filtering
- ClamAV antivirus with automatic updates
- OpenDKIM and OpenDMARC
- Fail2ban
- Fetchmail and Getmail6
- flexible TLS certificate support
- configuration files only, no SQL database
- setup script for accounts, aliases and maintenance

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by Docker Mailserver

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Mail-in-a-Box](https://talira.ai/catalog/mail-in-a-box-64rb5pey.md): Mail-in-a-Box lets you become your own mail service provider in a few easy steps
- [Mailu](https://talira.ai/catalog/mailu-gdhzmh0h.md): Insular email distribution - mail server as Docker images
- [mailcow](https://talira.ai/catalog/mailcow-v4t1mq41.md): The mailserver suite with the 'moo'
- [Stalwart](https://talira.ai/catalog/stalwart-yv5m99n7.md): Secure, scalable mail & collaboration server with comprehensive protocol support
- [Modoboa](https://talira.ai/catalog/modoboa-mp9fr2dc.md): Mail hosting made simple
- [Maddy Mail Server](https://talira.ai/catalog/maddy-mail-server-gf114sns.md): Composable all-in-one mail server

## Sources

[^1]: https://github.com/docker-mailserver/docker-mailserver/blob/master/LICENSE (checked 22 Nov 2026)
[^2]: https://docker-mailserver.github.io/docker-mailserver/latest/ (checked 22 Nov 2026)
