Stalwart is now a drop-in replacement for Microsoft Exchange stalw.art · 149 poi...
HN Best 200 @best
Stalwart is now a drop-in replacement for Microsoft Exchange stalw.art · 149 points · 84 comments · HN thread
TL;DR Stalwart 1.2.0 adds support for the protocols Exchange clients use (MAPI over HTTP, EWS, ActiveSync, Autodiscover), so Outlook, Apple Mail and phone apps can connect to a self-hosted Stalwart server without user-side changes. The article argues this is a bridge for organisations leaving on-premises Exchange, which Microsoft is phasing out, and it includes a migration tool (Vandelay) and other 1.2.0 features. The Exchange code is an AGPL Community edition feature disabled by default.
- Stalwart 1.2.0 implements MAPI over HTTP, EWS (2010 SP2 to 2016 schemas), Exchange ActiveSync 14.1/16.1 and Autodiscover, all on the same HTTPS port as JMAP.
- The pitch is that organisations can move the server first and keep users in their existing Outlook and phone apps, instead of forcing a client change at the same time.
- Exchange support is about 200,000 lines of code in a separate Cargo feature, disabled by default, and its stored metadata can be deleted without affecting standard protocol data.
- Not supported: public folders, archive mailboxes, mobile device management, RPC over HTTP, and NTLM/Kerberos sign-in.
- The article advises against the new Outlook for Windows with self-hosted servers, because IMAP connections from it go through Microsoft's cloud.
- Vandelay imports mailboxes from on-premises Exchange (EWS) and Microsoft 365 (Graph and EWS); stalwart-cli 2.0 adds a Ratatui-based interactive console.
Discussion The thread is skeptical and split. Many commenters question whether any enterprise would switch to a small open source mail server, citing deliverability problems, Exchange's wider role in calendaring and directory integration, and the risk of an unproven replacement. Others see a real market among European organisations wary of US cloud providers and note that the JMAP protocol is the more interesting part. A large side discussion concerns whether the codebase was largely written with AI, which the author's blog addresses, and some commenters push back on that. Overall the mood is mixed: interest and approval for the project, tempered by doubt about enterprise readiness.
- Enterprises are unlikely to trust a small replacement for Exchange (many): Several commenters doubt that companies relying on Exchange will risk migrating critical mail to a young project. They point to delivery failures and the breadth of Exchange features like calendars, distribution lists and vendor support as reasons to stay put.
- Sovereignty concerns make this timely for European organisations (some): Some argue that Microsoft's phase-out of on-premises Exchange and worries about US law make a self-hosted option valuable, especially for non-US users who are wary of American SaaS.
- JMAP is the real value; Exchange support is a transitional bridge (some): Commenters praise JMAP as a modern protocol and see Exchange compatibility as a stepping stone. One commenter compares the strategy to embrace, extend, extinguish in reverse, while another notes that JMAP adoption by other clients has been slow.
- Concern that the code was heavily AI-generated (some): Several commenters say the project shows signs of AI-written code and docs, and they doubt that 200k lines can be reviewed well enough for mail security. Others point to the author's published AI-use policy and argue that AI-assisted development is now normal.
- Postfix/Dovecot is still the proven baseline (a few): Some users with long-running Postfix and Dovecot setups ask how Stalwart compares. Replies highlight its integrated DNS management, search and spam handling, while others argue that the classic stack is still fiddly but well understood.
- Outbound deliverability is a separate problem from the server choice (a few): One user reports an IP range being blocked by Outlook and notes that running your own mail server carries that risk regardless of software. Others reply that the article's target audience already has working outbound delivery.
Links from the comments
- Stalwart's post on how the team uses AI in development, cited in the AI debate.
- Documentation on declarative deployments, relevant to a critique of Stalwart's configuration model.
- Euro-Office, a joint European fork of an office suite, recommended as an alternative to OnlyOffice.
- Stalwart's enterprise offering, mentioned as a way around AGPL concerns in companies.