Stalwart is now a drop-in replacement for Microsoft Exchange stalw.art · 239 poi...

@best30

Stalwart is now a drop-in replacement for Microsoft Exchange stalw.art · 239 points · 127 comments · HN thread

TL;DR Stalwart 1.2.0, an open-source mail server, adds support for the Exchange protocols (MAPI over HTTP, EWS, ActiveSync, Autodiscover) so Outlook and phone mail apps can connect without client changes. The article frames this as a bridge for organisations leaving on-premises Exchange, which Microsoft is steering toward its cloud, and says the Exchange code is AGPL, separate, and disabled by default.

  • Stalwart 1.2.0 implements MAPI over HTTP, Exchange Web Services (2010 SP2 to 2016 schemas), Exchange ActiveSync 14.1/16.1 and Autodiscover, so classic Outlook for Windows, Outlook for Mac, Apple Mail and phone apps can connect like to Exchange.
  • The article lists Exchange's decline: Exchange 2016/2019 out of support since October 2025, no new on-premises features, new Outlook refusing on-premises accounts, and EWS being switched off in Exchange Online.
  • Stalwart does not support public folders, archive mailboxes, mobile device management, RPC over HTTP, or NTLM/Kerberos sign-in; clients authenticate with password, app password or OAuth.
  • The Exchange code adds about 200,000 lines, sits behind a single Cargo feature, is off by default, and stores Exchange-specific metadata only when an Exchange client writes it.
  • Vandelay imports mail, calendars and contacts from on-premises Exchange (EWS) and Microsoft 365 (Graph or EWS), copying accounts over JMAP.
  • Other 1.2.0 changes include server-side mail rules compiled to Sieve, read receipts, working hours and free/busy, rooms and equipment, a native FoundationDB client, and stalwart-cli 2.0 with a terminal console. The article also advises against using the new Outlook with self-hosted servers.

Discussion The thread is large and divided. Many commenters see the Exchange compatibility as a practical escape route for European organisations worried about US cloud jurisdiction, while others argue the real lock-in is Exchange's calendaring, directory and support ecosystem rather than email, and that adding these protocols props up a dead end. A substantial side debate concerns the project's AI-assisted code, its configuration and database design, and whether an enterprise should trust a young mail server. Deliverability to Outlook and Gmail, JMAP's adoption and the AGPL licence also come up. Tone is mixed: cautiously interested, skeptical, and occasionally sardonic about Microsoft.

  • Exchange is about more than email; the replacement must match calendars and directories (many): Commenters argue that large organisations rely on Exchange for meeting scheduling, room booking, distribution lists, granular permissions and vendor support, so a mail-only replacement misses the point.
  • Practical escape route for European organisations worried about US cloud (many): Several see demand from public bodies and European firms that no longer want American SaaS, making a compatible self-hosted server valuable even if the protocols are dying.
  • Protocol support extends the closed Microsoft ecosystem and should be avoided (some): One commenter calls it a reverse embrace-extend-extinguish, arguing that supporting MAPI and EWS prolongs Microsoft lock-in; another replies that Stalwart's real strength is JMAP, which points toward open clients.
  • Too risky for production: AI-written code and an awkward configuration model (some): Critics say the docs and code look heavily AI-generated, the configuration is only reachable through GUI, CLI or API, and the database schema is poor, so they would not trust it with corporate mail.
  • Stalwart is solid and already used by others (some): Users report stability, low resource use and easy migration from Postfix/Dovecot/Rspamd, and note that Mozilla's Thundermail uses Stalwart; the AGPL licence also means the code can be forked if the company changes course.
  • Spam filtering and Microsoft delivery problems are the real barrier (a few): Some self-hosters report that Outlook banned their IP range and that spam classification misfires, arguing that deliverability is a bigger issue than the Exchange protocols.

Links from the comments

#email #exchange #selfHosting #dataSovereignty #jmap #microsoft