
Stalwart is now a drop-in replacement for Microsoft Exchange
For more than twenty years, “the mail server” in most companies meant Microsoft Exchange, and “the mail client” meant Outlook. Today we are releasing Stalwart 1.2.0, and with it Stalwart becomes a drop-in replacement fo…
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
For more than twenty years, “the mail server” in most companies meant Microsoft Exchange, and “the mail client” meant Outlook. Today we are releasing Stalwart 1.2.0, and with it Stalwart becomes a drop-in replacement for Microsoft Exchange.
Stalwart now implements the protocols that Exchange clients speak: MAPI over HTTP, Exchange Web Services (EWS), Exchange ActiveSync and Autodiscover. Outlook, Apple Mail and the mail apps on phones and tablets connect to Stalwart as they would to an Exchange server, with mail, calendars, contacts, tasks and notes in one account. Users type their email address and password, Autodiscover does the rest, and they keep working in the client they already know.
Exchange support is part of the open source Community edition, under the AGPL.
Section titled “Exchange on premises in 2026”
Before going into what Stalwart now does, it is worth looking at where self-hosted Exchange stands today, because it explains why so many organisations are looking for a way out.
Microsoft has not announced the end of Exchange Server. On paper, on-premises Exchange still exists. In practice, every road Microsoft is building leads to Exchange Online:
None of these steps forces anyone to move on its own. Together, they leave an Exchange administrator with a shrinking set of choices: keep running a server that will not grow, or move the organisation’s mail into Microsoft’s cloud.
For many organisations the second option is not acceptable. Email is the record of a company’s contracts, negotiations, legal advice, HR matters and customer data. Placing it with a US provider means placing it within reach of US law, including the CLOUD Act, which allows US authorities to compel American providers to hand over data they control wherever it is stored. Public administrations, healthcare providers, law firms, defence contractors and many European companies cannot accept that, or no longer want to. Data sovereignty means that you decide where your data lives, under which jurisdiction, and who can read it. A mail service in someone else’s cloud cannot offer that, and an on-premises server whose vendor is steering its customers toward that cloud offers less of it every year.
Section titled “Outlook without Exchange”
The obstacle to leaving Exchange has rarely been the server. It has been the client.
Many people have spent their whole working life in Outlook. They have years of muscle memory in it: their folder layout, their rules, their calendar views, their shared mailboxes, the way they book meeting rooms. Many organisations also have workflows built around it, such as delegated calendars managed by an assistant. Replacing Exchange with a standard IMAP and CalDAV server has always meant telling every one of those users to switch to a different mail client, or to reconfigure Outlook into a reduced IMAP mode where calendars and contacts no longer sync. For a migration project, that is often where the plan dies.
With Stalwart 1.2.0 the users do not need to change anything. The administrator moves the mailboxes and points the DNS records at Stalwart, and users connect with the same Outlook they used before.
Section titled “Supported protocols and clients”
Stalwart implements the following Microsoft protocols, all served on the same HTTPS port as JMAP and the WebUI:
That set of protocols is what the following clients use to talk to an Exchange server, and they can connect to Stalwart the same way:
Section titled “Shared data”
The Exchange protocols are not a separate silo inside Stalwart. They are another door into the same accounts. A message filed in Outlook is in the same mailbox an IMAP or JMAP client sees, a meeting accepted on a phone appears in the calendar that CalDAV clients read, and a contact added in Apple Contacts shows up in the CardDAV address book. A user can keep Outlook on the office desktop, the native mail app on a phone and a JMAP webmail in the browser, all on one account.
Rules created in Outlook’s Rules and Alerts are stored on the server as mail rules, which run as Sieve when the message is delivered. They apply when Outlook is closed and whatever client the user opens next. Delegates and folder permissions set in Outlook become regular Stalwart shares, so they apply to every protocol. Shared mailboxes open automatically in Outlook from group membership, as they do with Exchange.
Not every part of an Exchange deployment has a counterpart. Stalwart does not offer public folders, archive mailboxes, mobile device management, RPC over HTTP (Outlook 2010 and earlier) or NTLM and Kerberos sign-in: clients authenticate with a password, an app password or OAuth. The Exchange documentation covers configuration, DNS and Autodiscover, each family of clients, and the differences from Exchange that administrators should know about before a migration.
Section titled “New Outlook”
One Outlook is missing from the list above: the new Outlook for Windows, the one that Windows now installs by default and that classic Outlook keeps offering through a toggle in its title bar.
The new Outlook does not work with Stalwart, and it does not work with any self-hosted server, Exchange included. It is built to work through Microsoft’s cloud. Microsoft does not support on-premises Exchange accounts in it at all.
The new Outlook does accept IMAP accounts, and that might look like a way around the problem. It is not. When an IMAP account is added to the new Outlook, the connection to the mail server is not made from the user’s computer. As heise and c’t reported in November 2023, the new Outlook sends the IMAP server name, the user name and the password to Microsoft, and Microsoft’s cloud connects to the mail server on the user’s behalf. Every message then passes through Microsoft’s infrastructure on its way to the screen. Microsoft does not only see the mail; it holds the password to the mailbox.
For an organisation that runs its own mail server to keep its data under its own control, this defeats the purpose of the whole exercise. We advise against using the new Outlook with any self-hosted email deployment, whether it runs Stalwart or anything else. Users who see the “Try the new Outlook” toggle in classic Outlook should leave it off.
The same applies on phones. Outlook for iOS and Android reach on-premises mailboxes through a Microsoft cloud service as well, which requires a hybrid Exchange Online setup. On mobile devices, the native mail, calendar and contacts apps, which connect directly over ActiveSync, are the better choice.
Section titled “Late to the party”
The obvious question is why Stalwart is adding Exchange protocols now. EWS is being removed from Exchange Online, Microsoft’s own future for Outlook is a cloud client, and classic Outlook is reportedly supported until 2029. Why build support for protocols that will be obsolete in a few years?
Because the companies that run Exchange today cannot wait a few years, and because those protocols are the bridge they need to cross.
An organisation with a few hundred Outlook users cannot replace its mail server and its mail client in the same weekend. It can replace the server, though, if nobody notices. With Stalwart speaking the Exchange protocols, the server moves first: mailboxes are migrated, DNS records change, and on Monday every user opens the same Outlook and the same phone apps they used on Friday. The organisation’s mail is back under its own control from day one, and no one’s work is interrupted to get there.
The client can then change at the pace that suits the users. Over time, as classic Outlook reaches the end of its life and the new Outlook remains tied to Microsoft’s cloud, we expect users to move gradually to third-party email clients built on open standards, and in particular on JMAP. Outlook will stop being an option for anyone who cares about where their email lives, and by then the people who used it will have had the time to choose something else without a deadline over their heads.
Exchange support is not where Stalwart is going. It is how organisations get from where they are to where Stalwart is.
Section titled “Footprint and modularity”
Exchange compatibility is not a small piece of work. It adds about 200,000 lines of code to Stalwart, and we know that some of you would rather not carry that weight if you never plan to see an Outlook client. We built it with that in mind, so that it costs as little as possible for those who do not use it, and so that it can be removed cleanly once the Exchange protocols are obsolete:
Section titled “Migration from Exchange and Microsoft 365”
A drop-in replacement is only useful if the data can follow. Vandelay, our account import and export tool, migrates mailboxes from both sides of Microsoft’s offering:
Vandelay copies each account into Stalwart over JMAP, and the domain moves to Stalwart when its MX records and client settings change. The migration guide for hosted services walks through the whole process, from the first test account to the cutover. With the Exchange protocols enabled on Stalwart, Outlook and the other Exchange clients then connect through Autodiscover and find the migrated mail, calendars and contacts.
Section titled “Other changes in 1.2.0”
Exchange support is the headline, but 1.2.0 brings several other features, most of them developed alongside it because an Exchange replacement needs them:
The changelog lists every change and fix, along with the upgrade steps: existing servers need to add the new permissions to their default roles.
Section titled “Stalwart CLI 2.0”
Last week we also released version 2.0.0 of stalwart-cli, and its biggest addition is an interactive console. Run stalwart-cli with no arguments in a terminal and it opens a full-screen interface that covers the same ground as the WebUI: browsing and editing accounts, domains and every other configuration object, watching the dashboard, following live traces and running actions. It is aimed at administrators who live in SSH sessions, or who work on hosts where opening a browser is impractical.
The console is built with Ratatui, the excellent Rust library for terminal user interfaces, and it is schema-driven like the rest of the CLI: its screens, forms and field help come from the schema that the server publishes, so it picks up new objects without being updated. The CLI also learned to sign in with the OAuth device flow and to remember the session, so a single approval in the browser is enough for both the console and every subsequent command.
Section titled “FOSDEM 2027”
Stalwart will be at FOSDEM 2027 in Brussels. We will have a Stalwart stand, and on Saturday, 30 January 2027, we will give a talk about moving from Microsoft Exchange to Stalwart in the Modern Email devroom. If you are planning a migration away from Exchange, or are curious about what it takes, come and talk to us. We will post the time and title of the talk once the schedule is published.
Until then, the Exchange documentation has everything needed to try it, and we would love to hear how your Outlook clients get on with Stalwart.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。