Best Self-Hosted Mail Servers, Tested
Self-hosted mail servers replace Google Workspace or Microsoft 365 with a mail server you run yourself — anywhere from a full webmail suite down to a single lightweight container — and one pick here is not a mail server at all. Mailcow is the heaviest, most complete option: SOGo webmail, ActiveSync, and a polished admin UI, but it wants 6 GB of RAM minimum (8 GB recommended). Mailu trades some of that polish for a lighter, MIT-licensed set of Docker images with a setup-wizard admin panel at 1 GB. docker-mailserver strips it down further still — a single container, no database, no web UI, configured entirely from plain files, at just 512 MB. Stalwart rebuilds the whole thing in Rust as one binary with a built-in admin UI. Roundcube is only a webmail client: it never receives or delivers mail, and needs an existing IMAP and SMTP server, such as one of the other four, to log in to. Whichever you pick, deliverability — SPF, DKIM, DMARC, and reverse DNS — is on you, not a hosting provider; compare the servers on RAM footprint and how much admin UI you want managing the rest for you.
Mail Server apps
docker-mailserver
Mailcow
Mailu
Roundcube
Stalwart
Head-to-heads in this category
The complete admin-UI suite vs. the bare config-file container.
The full groupware suite vs. the lighter wizard-built mail stack.
A web-managed suite vs. a config-file container.
One Rust binary vs. the full container suite.
A single Rust binary vs. a wizard-built Docker Compose suite.
Paid link — we earn a commission if you shop through it.
Replace a paid tool
Common questions
How much RAM do self-hosted apps in Mail Server need?
Across the 5 apps in Mail Server, minimums run from 256 MB (Roundcube) to 6144 MB (Mailcow).
Which app in Mail Server uses the least RAM?
Of the 4 apps in Mail Server we measured, Stalwart used the least: 10 MB at idle (first boot, measured Aug 2026).
Do self-hosted apps in Mail Server support Docker?
All 5 apps in Mail Server list Docker support.