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. 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. Whichever you pick, deliverability — SPF, DKIM, DMARC, and reverse DNS — is on you, not a hosting provider; compare these on RAM footprint and how much admin UI you want managing the rest for you.
docker-mailserver
Mailcow
Mailu
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.