Direct answer: Email is a stack of protocols: SMTP moves mail between servers, IMAP, POP3, and JMAP deliver it to readers, and calendar and contacts add their own layers. A drop-in replacement must speak all of them, plus the SPF, DKIM, and DMARC authentication that decides whether other servers accept your mail.

Press send and the message crosses a chain of servers speaking protocols older than the web browser. Replacing Microsoft Exchange with an open-source server sounds like a product swap, and it is really a tour of that chain, because a drop-in replacement has to speak every protocol the old server spoke.

The trending query Stalwart is now a drop-in replacement for Microsoft Exchange landed on the Hacker News front page in late November 2026. The lesson underneath: protocol standards are what keep critical infrastructure portable, and they are why mail survives a vendor change at all.

The stack underneath the send button

Server-to-server delivery uses SMTP, the Simple Mail Transfer Protocol, which has carried mail across the internet since the early 1980s. Reading mail uses IMAP or POP3, and newer systems add JMAP, a JSON-based API designed for modern clients. Calendar and contacts travel over their own protocol layers on top.

Every piece is a separate standard with separate quirks, which is why mail feels like magic and behaves like plumbing. A client that shows your inbox is really juggling several protocols at once, and the server behind it speaks a longer list.

Sender clientSMTPSending serverSMTPReceiving serverIMAP, JMAPInboxthree handovers, three published standards, one message

What drop-in replacement demands

Speaking the protocols is the easy half. The demanding half is the quirks around them: spam filters that score every message, authentication layers, and decades of client expectations about how folders, flags, and idle connections should behave.

The authentication trio has well-defined jobs. SPF publishes which servers may send mail for a domain, DKIM attaches a cryptographic signature to each message, and DMARC tells receiving servers what to do when those checks fail. A replacement server must publish and enforce all three correctly, or mail starts bouncing on arrival.

missedyour Brain mapquiz yourselfmasteredWatch your weak spots turn green.

Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.

Open Brain - free

Why self-hosting mail is famously hard

Large providers distrust small senders, and they say so with bounce messages. A new server on a fresh IP address has no history, and receivers treat no history as a risk signal, so legitimate mail from small servers gets filtered while the operator builds reputation.

Reputation is earned through IP history and correct configuration, and neither can be rushed. That is the real reason mail has a reputation as the internet's hardest hosting job: the protocols are public, and other people's servers hold the verdicts.

ProtocolJobSpoken between
SMTPDeliver and relay mailServer and server
IMAPRead mail, sync foldersClient and server
POP3Download mailClient and server
JMAPModern JSON mail APIClient and server

Why an open-source server matters

Mail is critical infrastructure for organizations, and protocol standards keep it portable. When the server is open source and speaks the same standards, moving away from a vendor becomes a migration instead of a rebuild, which changes the balance of power in every renewal negotiation.

Resilience is the other gain. An ecosystem of independent servers means a single vendor decision cannot strand the world's correspondence, because the protocols, not any vendor, define the network. Stalwart reaching drop-in status is one more proof that the standards still carry the weight.

Key takeaways

  • Email delivery runs on SMTP between servers; reading runs on IMAP, POP3, or the newer JMAP API.
  • Calendar and contacts add their own protocol layers on top of the mail stack.
  • A drop-in replacement must handle spam filters, SPF, DKIM, DMARC, and decades of client expectations.
  • Self-hosting mail is hard because large providers distrust small senders, and reputation is earned through IP history and configuration.
  • Protocol standards keep mail portable, which is why an open-source server can replace a corporate one.

Quick answers

Which protocol delivers mail between servers?
SMTP, the Simple Mail Transfer Protocol, has carried server-to-server mail since the early 1980s.

What do clients use to read mail?
IMAP for syncing folders, POP3 for downloads, and JMAP, a newer JSON-based API built for modern clients.

What do SPF, DKIM, and DMARC do?
SPF lists authorized sending servers, DKIM signs each message, and DMARC tells receivers what to do when checks fail.

Why is self-hosted mail filtered at first?
A fresh server has no IP history, and receivers treat missing history as a risk until reputation builds.

What does drop-in replacement actually mean?
Speaking the same protocols and quirks well enough that clients, filters, and other servers notice nothing.

One thing to do tonight

Look up your own domain's SPF record; a minute of DNS reading will show you one layer of the stack working for you already. Every address you own has this machinery behind it, running whether or not anyone looks.