10 top picks · 3 audience rankings
Best open source email servers
The best open source email server is Stalwart Mail Server (AGPL-3.0, 16,021 GitHub stars, Docker image). Mailcow stands out for its PHP codebase, and docker-mailserver stands out for the most GitHub stars.
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 Nov 16, 2026
Email ServersRustDockerStands out for the most commits in the last 12 months (701). Stalwart Mail Server has 16,021 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 701 commits in the last year; it replaces Twilio SendGrid and Mailgun.
- Rank 2:
Mailcow
mailcow/mailcow-dockerized
Mail server suite based on Dovecot, Postfix and other software, that provides a modern Web UI for administration.
Active · last commit Nov 17, 2026
Email ServersPHPDockerStands out for its PHP codebase. Mailcow has 13,837 GitHub stars, uses the GPL-3.0 license, ships a Docker image and had 414 commits in the last year; it replaces Gmail.
- Rank 3:
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 Nov 17, 2026
Email ServersShellDockerStands out for the most GitHub stars. docker-mailserver has 19,765 GitHub stars, uses the MIT license, ships a Docker image and had 138 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 (701) | AGPL-3.0 | 16,021 | 701 | Nov 16, 2026 | Yes |
| Mailcow | its PHP codebase | GPL-3.0 | 13,837 | 414 | Nov 17, 2026 | Yes |
| docker-mailserver | the most GitHub stars | MIT | 19,765 | 138 | Nov 17, 2026 | Yes |
| Mailu | a permissive MIT license | MIT | 7,633 | 379 | Nov 14, 2026 | Yes |
| SimpleLogin | – | AGPL-3.0 | 7,149 | 314 | Nov 13, 2026 | Yes |
| Postal | – | MIT | 16,965 | 20 | Nov 16, 2026 | Yes |
| Roundcube | – | GPL-3.0 | 7,289 | 342 | Nov 17, 2026 | No |
| Mail-in-a-Box | – | CC0-1.0 | 15,470 | 24 | Nov 8, 2026 | No |
| AnonAddy | – | AGPL-3.0 | 4,958 | 73 | Nov 17, 2026 | Yes |
| Modoboa | – | ISC | 3,542 | 1,018 | Nov 18, 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 (701). Stalwart Mail Server has 16,021 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 701 commits in the last year; it replaces Twilio SendGrid and Mailgun.
- 2
Mailcow
Mail server suite based on Dovecot, Postfix and other software, that provides a modern Web UI for administration.
Email ServersDockerStands out for its PHP codebase. Mailcow has 13,837 GitHub stars, uses the GPL-3.0 license, ships a Docker image and had 414 commits in the last year; it replaces Gmail.
- 3
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,765 GitHub stars, uses the MIT license, ships a Docker image and had 138 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,633 GitHub stars, uses the MIT license, ships a Docker image and had 379 commits in the last year; it replaces Gmail.
- 5
SimpleLogin
Email alias solution to protect your email address. Comes with browser extensions and mobile apps.
Email ServersDockerSimpleLogin has 7,149 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 314 commits in the last year.
- 6
Postal
Complete and fully featured mail server for use by websites & web servers.
Email ServersDockerPostal has 16,965 GitHub stars, uses the MIT license, ships a Docker image and had 20 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,289 GitHub stars, uses the GPL-3.0 license and had 342 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,470 GitHub stars, uses the CC0-1.0 license and had 24 commits in the last year; it replaces Gmail.
- 9
AnonAddy
Email forwarding service for creating aliases.
Email ServersDockerAnonAddy has 4,958 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 73 commits in the last year.
- 10
Modoboa
Mail hosting and management platform including a modern and simplified web user interface.
Email ServersModoboa has 3,542 GitHub stars, uses the ISC license and had 1,018 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,765 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,765 GitHub stars, uses the MIT license, ships a Docker image and had 138 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 16,021 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 701 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 software, that provides a modern Web UI for administration.
Email ServersDockerMailcow has 13,837 GitHub stars, uses the GPL-3.0 license, ships a Docker image and had 414 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,633 GitHub stars, uses the MIT license, ships a Docker image and had 379 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,965 GitHub stars, uses the MIT license, ships a Docker image and had 20 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, 16,021 GitHub stars), followed by Mailcow and docker-mailserver. 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 16,021 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 701 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
Mailcow
Mail server suite based on Dovecot, Postfix and other software, that provides a modern Web UI for administration.
Email ServersDockerMailcow has 13,837 GitHub stars, uses the GPL-3.0 license, ships a Docker image and had 414 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
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,765 GitHub stars, uses the MIT license, ships a Docker image and had 138 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,633 GitHub stars, uses the MIT license, ships a Docker image and had 379 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
Email alias solution to protect your email address. Comes with browser extensions and mobile apps.
Email ServersDockerSimpleLogin has 7,149 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 314 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, 16,021 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 16,021 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 701 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,765 GitHub stars, uses the MIT license, ships a Docker image and had 138 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 software, that provides a modern Web UI for administration.
Email ServersDockerMailcow has 13,837 GitHub stars, uses the GPL-3.0 license, ships a Docker image and had 414 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
Mailu
Simple yet full-featured mail server as a set of Docker images.
Email ServersDockerMailu has 7,633 GitHub stars, uses the MIT license, ships a Docker image and had 379 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.
- 5
Postal
Complete and fully featured mail server for use by websites & web servers.
Email ServersDockerPostal has 16,965 GitHub stars, uses the MIT license, ships a Docker image and had 20 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.
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, Mailcow and docker-mailserver 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 1,018 commits in the last 12 months and a latest release, 2.13.0, from November 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.