Skip to content

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.

We earn commissions when you shop through the links below. Full disclosure →

Mail Server apps

Mail Server

docker-mailserver

A production-ready, config-driven mail server in a single container — Postfix, Dovecot, and a choice of Amavis/SpamAssassin or Rspamd antispam, with no database and no web UI, configured entirely from plain files. A lightweight, MIT-licensed self-hosted alternative to Google Workspace email. As with any self-hosted mail, expect to manage deliverability (SPF, DKIM, DMARC, and reverse DNS) so your mail reaches inboxes.
Shell
hardRead guide →
Mail Server

Mailcow

A full-featured, Docker-based mail server suite — Postfix, Dovecot, SOGo webmail, ActiveSync, antispam, and a polished admin UI — the popular self-hosted alternative to Google Workspace and Microsoft 365 for small teams. It is a heavier, multi-container stack: 6 GB of RAM is the minimum, 8 GB recommended. As with any self-hosted mail, expect to manage deliverability (SPF, DKIM, DMARC, and reverse DNS) so your mail reaches inboxes.
PHPShell
hardRead guide →
Mail Server

Mailu

A simple, full-stack mail server as a set of Docker images — SMTP/IMAP, webmail, antispam, and an admin panel generated by a setup wizard. A lighter, MIT-licensed self-hosted alternative to Google Workspace for personal and small-team email. As with any self-hosted mail, expect to manage deliverability (SPF, DKIM, DMARC, and reverse DNS) so your mail reaches inboxes.
PythonShell
hardRead guide →
Mail Server

Roundcube

A browser-based IMAP email client with an address book, folder management, message search, MIME support and a plugin system. It is webmail only, not a mail server: it connects to an IMAP server for reading mail and an SMTP server for sending, and keeps its own account metadata in a database. The Docker image ships it on Apache with SQLite, MySQL or PostgreSQL.
PHPJavaScript
easyRead guide →
Mail Server

Stalwart

An all-in-one, self-hosted mail server written in Rust — SMTP, IMAP, JMAP, and CalDAV/CardDAV in a single binary with a built-in admin UI. The modern, low-footprint way to run your own email instead of Google Workspace or Microsoft 365.
Rust
hardRead guide →

Head-to-heads in this category

Where to host itaffiliate disclosure
Kamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + Asia
Start free on Kamatera → (opens in new tab)
DigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + Asia
Deploy on DigitalOcean → (opens in new tab)

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.

Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.