Best Self-Hosted Email Server: A Decision Tree, Not a Ranking

Self-hosting mail in 2026 is optional, not a personality. This page maps hobby, Docker, single-binary, Windows, commercial on-prem, and hosted options—and puts Hexamail only where Windows/business actually fits.

Hexamail Editorial

Should you self-host mail at all?

Reddit’s standing argument is still the right first filter. Self-hosting email is operating an Internet-facing identity service with a hostile default: other people’s spam filters. Fastmail, Proton, Google Workspace, and Microsoft 365 exist because deliverability, abuse desks, and disk-full-at-2am are expensive.

Self-host anyway when one of these is true: data must stay on machines you control; you are an MSP/ISP selling mail; Windows is the only platform you will operate; you are learning the stack on a domain you can afford to burn; or a regulator smiled on “our MX, our disk.” If none of those apply, a good hosted provider is the best self-hosted email server—because you will not self-host.

This page assumes you already passed that filter, or you are about to. It will not crown a winner. The 2026 comparison sites that rank Mailcow vs Stalwart vs Mailu are doing a Linux-container bake-off. That bake-off is real. It is not the whole market.

The hard part is not IMAP. It is other people’s spam filters.

This page sits in the mail-server cluster

Self-hosting is one buying question. Windows commercial comparison lives on the hub: best Windows mail server. On-prem residency: on-premise email server. If you actually needed an archive, leave this page: on-premise email archiving.

Pick the type first, then the product

If you skip this table you will demo Mailcow when you needed Vault, or Hexamail when you wanted a weekend Docker hobby. The “best” server is the row that matches the job.

Open source on Linux: Mailcow, Mailu, Stalwart

Mailcow is the kitchen-sink Docker compose stack: Postfix, Dovecot, Rspamd, ClamAV, SOGo webmail/calendar/ActiveSync, Nginx. Largest community, best “office manager can click webmail” story, hungriest RAM (plan 4 GB+, 8 GB comfortable). Default for a 10–500 mailbox Linux SMB that wants groupware.

Mailu is the slimmer compose/Kubernetes-friendly suite: still real SMTP/IMAP, Rspamd, webmail you choose, smaller footprint than Mailcow. Pick it when you want to audit components or already live in k8s, and you do not need SOGo’s full ActiveSync kitchen.

Stalwart is the 2026 plot twist: a Rust single binary (or one container) with SMTP, IMAP, POP3, JMAP, Sieve, built-in spam, admin UI. Hundreds of MB of RAM, not gigabytes. Newer community, fewer “copy this compose snippet” answers. Best for technical teams and small VPS. Webmail is bring-your-own (Roundcube etc.). There is a paid enterprise/support edition if you later want a throat to choke.

Also-rans worth naming. Mail-in-a-Box: opinionated Ubuntu beginner box. docker-mailserver: à la carte, you bring UI. Postal: outbound only—do not use it as a self-hosted Gmail.

None of these will save a residential IP, a missing rDNS, or a domain with a dirty reputation. The software is the easy part.

Windows and commercial on-prem — a different shortlist

Linux comparison sites quietly assume you will run Docker on a VPS. Entire businesses will not. Windows server is a requirement, not a lifestyle failure.

On that row: Hexamail Server (Windows or Linux, SMTP/IMAP/POP, webmail, CalDAV, AD/LDAP, on-box antispam, perpetual licensing), MailEnable, MDaemon, SmarterMail (now also Linux/Docker, native MAPI), and Exchange if you already operate it. See the Windows mail server comparison for licensing and ActiveSync add-ons.

Hexamail belongs here—not on the Mailcow vs Stalwart RAM chart. If you put a commercial Windows server in a Docker bake-off you will conclude the wrong thing. If you put Mailcow on a domain controller because a blog said “best self hosted email server,” you will also conclude the wrong thing.

Business + on-premise means you want a vendor, a trial license, a backup document, and someone to call when TLS certificates and Autodiscover fight Outlook. Open source can do that if you are the vendor. Most SMBs are not.

Archiving is not a mail server

A recurring self-host mistake: inflate IMAP quotas and call it compliance. Mailboxes are mutable. Users delete. PST files rot. If the requirement is retention, search, and export, you want an archive—Hexamail Vault, MailStore, Cryoserver—beside whatever hosts live mail. Vault runs on Windows or Linux and can sit in front of SMTP as well as index PST and foreign servers.

Self-hosting Mailcow and expecting it to be your legal archive is how discovery requests become weekends. Split the jobs. Details: on-premise email archiving software.

The costs that do not fit in a VPS price

Deliverability. Warm a dedicated IP. Set rDNS, SPF, DKIM, DMARC, MTA-STS if you can. Monitor blocklists. Send a volume that looks like a person, not a botnet. Hosted providers already did this; you are volunteering.

Time. Honest 2026 write-ups put hobby self-host in the tens of hours per year after it is working. Business self-host is an operations role. If that role is empty, you wanted Fastmail.

Backup and restore. Snapshot the VM and test a restore to a different hostname. Mail is worthless if the only copy is the live disk.

Abuse and users. Password resets, devices, phishing that got through Rspamd, a leaver’s mailbox. SOGo will not do HR.

If those paragraphs feel exciting, self-host. If they feel like unpaid work, pay Fastmail or Microsoft and spend the weekend on something else. Both choices can be correct.

A shortlist you can defend

  • Hobby / learn DNS on a throwaway domain → Mail-in-a-Box or Stalwart on a $6 VPS.
  • Docker, webmail, calendars, Linux SMB → Mailcow.
  • Docker but slimmer / k8s → Mailu.
  • Tiny VPS, JMAP, one binary → Stalwart.
  • Windows shop, AD, support contract → Hexamail Server (or SmarterMail if Outlook MAPI is mandatory).
  • Need an archive, not bigger mailboxes → Vault (or MailStore on Windows).
  • Hate operations → hosted. Do not install Mailcow “just to see” on the company domain.

Demo two at most. Send mail to Gmail, Outlook.com, and a phone. If it lands in spam, you do not have a mail server yet—you have a science project.

Self-host only after this forkWill you operate DNS, TLS, backups, and deliverability for years? No → hosted (Fastmail / Proton / Workspace / M365)Yes + Linux DockerMailcow or MailuSingle binary → StalwartYes + Windows / ADHexamail Server · MailEnable · MDaemon · SmarterMail · ExchangeNeed retention / searchThat is an archive (Vault / MailStore) — not a bigger IMAP quota

Bottom line

The best self-hosted email server is the one whose operating model you will still accept in 2029. Mailcow, Mailu, and Stalwart are the Linux conversation. Hexamail Server is in the Windows/business conversation. Vault is in the archiving conversation. Hosted mail is the correct answer for minimum maintenance.

Hexamail is not “best” at Docker-on-a-VPS hobby mail. It is a candidate when the requirement table says Windows server or business + on-premise. If that is you, trial it. If that is not you, use the table and ignore the CTA.