10 top picks · 3 audience rankings
Best open source email servers
The best open source email server is Stalwart Mail Server (AGPL-3.0, 15,442 GitHub stars, Docker image). docker-mailserver stands out for the most GitHub stars, and Mailcow stands out for its JavaScript codebase.
This page also breaks the picks down by team size and use: docker-mailserver leads for startups; Stalwart Mail Server for small business and enterprise.
Updated · data from GitHub, refreshed daily
Top picks
- Rank 1:
Stalwart Mail Server
stalwartlabs/stalwart
All-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features.
Active · last commit Oct 27, 2026
Email ServersRustDockerStands out for the most commits in the last 12 months (714). Stalwart Mail Server has 15,442 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 714 commits in the last year; it replaces Twilio SendGrid and Mailgun.
- Rank 2:
docker-mailserver
docker-mailserver/docker-mailserver
Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container. Only configuration files, no SQL database.
Active · last commit Oct 26, 2026
Email ServersShellDockerStands out for the most GitHub stars. docker-mailserver has 19,698 GitHub stars, uses the MIT license, ships a Docker image and had 119 commits in the last year; it replaces Gmail.
- Rank 3:
Mailcow
mailcow/mailcow-dockerized
Mail server suite based on Dovecot, Postfix and other open source software, that provides a modern Web UI for administration.
Active · last commit Oct 28, 2026
Email ServersJavaScriptDockerStands out for its JavaScript codebase. Mailcow has 13,712 GitHub stars, uses the GPL-3.0 license, ships a Docker image and had 353 commits in the last year; it replaces Gmail.
At a glance
Open source email servers compared
Ranked on GitHub stars, commits in the last year, Docker images, open-source licenses and recent commits across the 24 apps in the email servers category. Projects with fewer than 12 commits in the last 12 months rank below every more active project.
| App | Stands out for | License | GitHub stars | Commits (12 mo) | Last commit | Docker image |
|---|---|---|---|---|---|---|
| Stalwart Mail Server | the most commits in the last 12 months (714) | AGPL-3.0 | 15,442 | 714 | Oct 27, 2026 | Yes |
| docker-mailserver | the most GitHub stars | MIT | 19,698 | 119 | Oct 26, 2026 | Yes |
| Mailcow | its JavaScript codebase | GPL-3.0 | 13,712 | 353 | Oct 28, 2026 | Yes |
| Mailu | a permissive MIT license | MIT | 7,595 | 279 | Oct 27, 2026 | Yes |
| SimpleLogin | – | AGPL-3.0 | 7,097 | 307 | Oct 27, 2026 | Yes |
| Postal | – | MIT | 16,897 | 18 | Oct 20, 2026 | Yes |
| Roundcube | – | GPL-3.0 | 7,245 | 308 | Oct 25, 2026 | No |
| Mail-in-a-Box | – | CC0-1.0 | 15,450 | 23 | Oct 22, 2026 | No |
| AnonAddy | – | AGPL-3.0 | 4,924 | 69 | Oct 6, 2026 | Yes |
| Modoboa | – | ISC | 3,545 | 910 | Oct 28, 2026 | No |
1 of 4 · 10 picks
Top picks
10 of the 24 apps in the email servers category.
- 1
Stalwart Mail Server
All-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features.
Email ServersDockerStands out for the most commits in the last 12 months (714). Stalwart Mail Server has 15,442 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 714 commits in the last year; it replaces Twilio SendGrid and Mailgun.
- 2
docker-mailserver
Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container. Only configuration files, no SQL database.
Email ServersDockerStands out for the most GitHub stars. docker-mailserver has 19,698 GitHub stars, uses the MIT license, ships a Docker image and had 119 commits in the last year; it replaces Gmail.
- 3
Mailcow
Mail server suite based on Dovecot, Postfix and other open source software, that provides a modern Web UI for administration.
Email ServersDockerStands out for its JavaScript codebase. Mailcow has 13,712 GitHub stars, uses the GPL-3.0 license, ships a Docker image and had 353 commits in the last year; it replaces Gmail.
- 4
Mailu
Simple yet full-featured mail server as a set of Docker images.
Email ServersDockerStands out for a permissive MIT license. Mailu has 7,595 GitHub stars, uses the MIT license, ships a Docker image and had 279 commits in the last year; it replaces Gmail.
- 5
SimpleLogin
Open source email alias solution to protect your email address. Comes with browser extensions and mobile apps.
Email ServersDockerSimpleLogin has 7,097 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 307 commits in the last year.
- 6
Postal
Complete and fully featured mail server for use by websites & web servers.
Email ServersDockerPostal has 16,897 GitHub stars, uses the MIT license, ships a Docker image and had 18 commits in the last year; it replaces Twilio SendGrid and Mailgun.
- 7
Roundcube
Browser-based IMAP client with an application-like user interface.
Email ServersRoundcube has 7,245 GitHub stars, uses the GPL-3.0 license and had 308 commits in the last year; it replaces Gmail.
- 8
Mail-in-a-Box
Turns any Ubuntu server into a fully functional mail server with one command.
Email ServersMail-in-a-Box has 15,450 GitHub stars, uses the CC0-1.0 license and had 23 commits in the last year; it replaces Gmail.
- 9
AnonAddy
Email forwarding service for creating aliases.
Email ServersDockerAnonAddy has 4,924 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 69 commits in the last year.
- 10
Modoboa
Mail hosting and management platform including a modern and simplified web user interface.
Email ServersModoboa has 3,545 GitHub stars, uses the ISC license and had 910 commits in the last year.
2 of 4 · 5 picks
Which open source email server is best for startups?
For startups, docker-mailserver ranks first (MIT, 19,698 GitHub stars), followed by Stalwart Mail Server and Mailcow. Ranked for startups on GitHub stars, commits in the last year, Docker images, open-source licenses, project websites and recent commits.
- 1
docker-mailserver
Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container. Only configuration files, no SQL database.
Email ServersDockerdocker-mailserver has 19,698 GitHub stars, uses the MIT license, ships a Docker image and had 119 commits in the last year; it replaces Gmail. For startups it also scores on a Docker image, a permissive license (MIT), a project website and a commit in the last 90 days.
- 2
Stalwart Mail Server
All-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features.
Email ServersDockerStalwart Mail Server has 15,442 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 714 commits in the last year; it replaces Twilio SendGrid and Mailgun. For startups it also scores on a Docker image, an open-source license, a project website and a commit in the last 90 days.
- 3
Mailcow
Mail server suite based on Dovecot, Postfix and other open source software, that provides a modern Web UI for administration.
Email ServersDockerMailcow has 13,712 GitHub stars, uses the GPL-3.0 license, ships a Docker image and had 353 commits in the last year; it replaces Gmail. For startups it also scores on a Docker image, an open-source license, a project website and a commit in the last 90 days.
- 4
Mailu
Simple yet full-featured mail server as a set of Docker images.
Email ServersDockerMailu has 7,595 GitHub stars, uses the MIT license, ships a Docker image and had 279 commits in the last year; it replaces Gmail. For startups it also scores on a Docker image, a permissive license (MIT), a project website and a commit in the last 90 days.
- 5
Postal
Complete and fully featured mail server for use by websites & web servers.
Email ServersDockerPostal has 16,897 GitHub stars, uses the MIT license, ships a Docker image and had 18 commits in the last year; it replaces Twilio SendGrid and Mailgun. For startups it also scores on a Docker image, a permissive license (MIT), a project website and a commit in the last 90 days.
3 of 4 · 5 picks
Which open source email server is best for small business?
For small business, Stalwart Mail Server ranks first (AGPL-3.0, 15,442 GitHub stars), followed by docker-mailserver and Mailcow. Ranked for small business on GitHub stars, commits in the last year, Docker images, open-source licenses, project websites, recent commits and deploy guides.
- 1
Stalwart Mail Server
All-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features.
Email ServersDockerStalwart Mail Server has 15,442 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 714 commits in the last year; it replaces Twilio SendGrid and Mailgun. For small business it also scores on a Docker image, an open-source license, a project website and a commit in the last 90 days.
- 2
docker-mailserver
Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container. Only configuration files, no SQL database.
Email ServersDockerdocker-mailserver has 19,698 GitHub stars, uses the MIT license, ships a Docker image and had 119 commits in the last year; it replaces Gmail. For small business it also scores on a Docker image, an open-source license, a project website and a commit in the last 90 days.
- 3
Mailcow
Mail server suite based on Dovecot, Postfix and other open source software, that provides a modern Web UI for administration.
Email ServersDockerMailcow has 13,712 GitHub stars, uses the GPL-3.0 license, ships a Docker image and had 353 commits in the last year; it replaces Gmail. For small business it also scores on a Docker image, an open-source license, a project website and a commit in the last 90 days.
- 4
Mailu
Simple yet full-featured mail server as a set of Docker images.
Email ServersDockerMailu has 7,595 GitHub stars, uses the MIT license, ships a Docker image and had 279 commits in the last year; it replaces Gmail. For small business it also scores on a Docker image, an open-source license, a project website and a commit in the last 90 days.
- 5
SimpleLogin
Open source email alias solution to protect your email address. Comes with browser extensions and mobile apps.
Email ServersDockerSimpleLogin has 7,097 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 307 commits in the last year. For small business it also scores on a Docker image, an open-source license, a project website and a commit in the last 90 days.
4 of 4 · 5 picks
Which open source email server is best for enterprise?
For enterprise, Stalwart Mail Server ranks first (AGPL-3.0, 15,442 GitHub stars), followed by docker-mailserver and Mailcow. Ranked for enterprise on GitHub stars, commits in the last year, open-source licenses and recent commits.
- 1
Stalwart Mail Server
All-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features.
Email ServersDockerStalwart Mail Server has 15,442 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 714 commits in the last year; it replaces Twilio SendGrid and Mailgun. For enterprise it also scores on an open-source license and a commit in the last 90 days.
- 2
docker-mailserver
Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container. Only configuration files, no SQL database.
Email ServersDockerdocker-mailserver has 19,698 GitHub stars, uses the MIT license, ships a Docker image and had 119 commits in the last year; it replaces Gmail. For enterprise it also scores on an open-source license and a commit in the last 90 days.
- 3
Mailcow
Mail server suite based on Dovecot, Postfix and other open source software, that provides a modern Web UI for administration.
Email ServersDockerMailcow has 13,712 GitHub stars, uses the GPL-3.0 license, ships a Docker image and had 353 commits in the last year; it replaces Gmail. For enterprise it also scores on an open-source license and a commit in the last 90 days.
- 4
Postal
Complete and fully featured mail server for use by websites & web servers.
Email ServersDockerPostal has 16,897 GitHub stars, uses the MIT license, ships a Docker image and had 18 commits in the last year; it replaces Twilio SendGrid and Mailgun. For enterprise it also scores on an open-source license and a commit in the last 90 days.
- 5
Mail-in-a-Box
Turns any Ubuntu server into a fully functional mail server with one command.
Email ServersMail-in-a-Box has 15,450 GitHub stars, uses the CC0-1.0 license and had 23 commits in the last year; it replaces Gmail. For enterprise it also scores on an open-source license and a commit in the last 90 days.
Is Stalwart Mail Server free?
Yes. Stalwart Mail Server is open-source software released under the AGPL-3.0 license, so you can self-host it at no cost. You only pay for the server it runs on, and some projects also offer an optional paid cloud plan.
Can I self-host these email servers with Docker?
Yes, 7 of the 10 picks. Stalwart Mail Server, docker-mailserver and Mailcow publish Docker images, so you can run them on a VPS or home server with Docker Compose. The others install from their own packages or source; follow each project's install guide.
Are all of these email servers open source?
All 10 apps on this list are open source. You can self-host and modify each one under its license.
Which of these email servers is the most actively developed?
Modoboa, with 910 commits in the last 12 months and a latest release, 2.12.0, from October 2026. Activity is a good sign that bugs and security issues get fixed.
How is this list ranked?
Ranked on GitHub stars, commits in the last year, Docker images, open-source licenses and recent commits across the 24 apps in the email servers category. Projects with fewer than 12 commits in the last 12 months rank below every more active project.
The weekly digest
New self-hosted apps, every week
Fresh releases, rising projects and one deploy guide a week. Join home labbers and engineers who self-host.