docker-mailserver
Email software
Containerized mail server built on Postfix and Dovecot, configured with plain files
20k 2.1k today Thriving MIT
Replaces Gmail
Docker-based mail server suite with SOGo webmail for admins who run their own domain
Listed by Alston Antony, founder & editor
Health
ThrivingStars
13,864
Last commit
4 days ago
Nov 2026
Repository age
9 years
since Dec 2016
Latest version
2026-11b
Nov 2026
Contributors
–
4 active in 90 days
Releases
19
last 12 months
Language
PHP
Mailcow packages a complete mail server as a Docker Compose stack. It combines Postfix and Dovecot for mail transport and storage, Rspamd and ClamAV for spam and virus filtering, and SOGo for webmail, calendar and contacts. ACME support handles TLS certificates. A web interface covers day-to-day administration.
You run it on your own server with your own domain. The project has been developed since 2016, is written mainly in PHP, and ships regular releases. It is managed by The Infrastructure Company GmbH, which also sells support contracts through Servercow.
Mailcow fits teams that want to replace hosted mailboxes such as Microsoft Outlook with Exchange-style mail, Yahoo! Mail or Yandex Mail with something they control. It does not match Exchange's native ActiveSync-level integration, and it has no end-to-end encryption. You also handle DNS, upkeep and deliverability yourself.
Mailcow's own code is GPL-3.0. It bundles many other open source components, so check that their licenses suit you.
One Docker stack gives them mailboxes, webmail, calendar, contacts and spam filtering with a web admin panel.
Skip if: You do not want to maintain DNS records, updates and server reputation yourself.
SOGo provides webmail, calendars and contacts, and the stack replaces a hosted mail service.
Skip if: You depend on native Exchange or ActiveSync-level integration.
The suite is self-contained and documented, with ACME certificates built in.
Skip if: Your ISP or IP address cannot deliver mail reliably.
Hosted mail services keep your messages on someone else's servers and tie you to their terms. Assembling Postfix, Dovecot, spam filtering and webmail by hand is slow and error-prone. Mailcow bundles these parts into one Docker stack.
Yahoo! Mail alternative · #1 of 5
Admins who want a full Docker mail suite with SOGo webmail, groupware and antivirus
Yandex Mail alternative · #1 of 4
Admins who want a Docker mail suite with SOGo webmail, calendar and contacts
Gmail alternative · #3 of 10
Admins who want a Docker-based mail server with SOGo webmail, calendar and contacts
Microsoft Outlook alternative · #4 of 13
Teams that want a full self-hosted mail and groupware suite with web admin
Yes. The code is released under GPL-3.0. Paid support contracts are optional.
Yes, self-hosting is the intended use. It runs as a Docker stack on your own server.
No. You run the server yourself and deliverability depends on your own IP.
Mailcow itself is GPL-3.0. It uses other open source software with their own licenses.
Email software
Containerized mail server built on Postfix and Dovecot, configured with plain files
20k 2.1k today Thriving MIT
Replaces Gmail
Email software
Android email client for people who want privacy and many accounts in one inbox
4.8k 714 3 days ago Active GPL-3.0
Replaces Microsoft Outlook
Email software
Desktop app that lets Outlook, Thunderbird and Apple Mail read Proton Mail over IMAP
1.6k 254 17 days ago Active GPL-3.0
Email software
968 78 33 days ago Slowing Apache-2.0
Email software
Source for the Proton web apps: encrypted mail, calendar, contacts and drive
5.7k 744 today Active GPL-3.0
Replaces GmailYahoo! MailYandex Mail +1
Email software
Self-hosted mail server with SMTP and API delivery for apps and websites
17k 1.3k 3 days ago Active MIT
Replaces Mailgun