blog

An open-source mail server now speaks Exchange. Is it a way off your old Exchange server?

If you still run your own Exchange server, there's a new option on the table. Stalwart, an open-source mail server, released version 1.2.0 yesterday, and it now talks to Outlook and phones the way Exchange does.

That matters because earlier this month I wrote about Microsoft calling Exchange 2016 and 2019 "permanently vulnerable". Until now the realistic choices were Exchange SE or moving to the cloud. This is a third one, with caveats.

What happened

On 23 November Stalwart published Stalwart 1.2.0. The new part is that it implements the protocols Exchange clients use:

  • MAPI over HTTP, which is what classic Outlook for Windows uses. Stalwart says it supports "Outlook 2016 and later, including Microsoft 365 Apps".
  • Exchange Web Services (EWS), used by Outlook for Mac, Apple Mail and Thunderbird among others.
  • Exchange ActiveSync, which is what the built-in mail apps on iPhones and Android phones use for an "Exchange" account.
  • Autodiscover, so people can set up their mail with just an email address and password.

The post covers mail, calendars, contacts, tasks, shared mailboxes, delegates and the global address list. Exchange clients are, in Stalwart's words, "another door into the same accounts". Outlook rules, delegates and folder permissions map onto Stalwart's own mail rules and sharing.

The bit that caught my eye: "Exchange support is part of the open source Community edition, under the AGPL." You don't need a paid licence to use it. Stalwart does sell an Enterprise edition, and its pricing page starts that at 25 mailboxes, at EUR 2.00 per mailbox per year for the first tier. But the Exchange protocols are in the free one.

There's also a migration tool, Vandelay, which imports mail, calendars and contacts from an on-premises Exchange server over EWS, or from Microsoft 365 over Microsoft Graph.

What it doesn't do

Stalwart is upfront about the gaps, and they're worth reading before you get excited.

It doesn't offer public folders, archive mailboxes or mobile device management. It doesn't support Outlook 2010 and older, or Windows sign-in through NTLM and Kerberos. People log in with a password, an app password or OAuth instead.

The new Outlook is out. The post says plainly: "The new Outlook does not work with Stalwart." Classic Outlook does. If your staff have been moved onto the new one, that's a conversation to have first.

So are the Outlook phone apps. Outlook for iPhone and Android reaches on-premises mailboxes through a Microsoft cloud service that needs a hybrid Exchange Online setup. Stalwart recommends the phone's own mail, calendar and contacts apps instead.

The Exchange support is also switched off by default. Stalwart's own words: "It is disabled by default." An administrator has to turn it on.

The finer detail is on its limitations page.

Does it affect you?

You're the audience for this if you have a handful to a few dozen people on an Exchange server in a cupboard or a rented server, you'd rather keep your mail on kit you control, and you don't want per-user licences.

If you're already on Microsoft 365 and happy, nothing changes. And if you rely on public folders, archiving or managing staff phones through Exchange, it isn't a fit today.

One more thing. This is a release from yesterday. The protocols are complicated, and a 1.2.0 release is new. I'd treat it as something to test properly, not something to switch the whole office onto over a weekend.

What to do this week

1. Write down what your Exchange server actually does. Which Outlook versions you use, who uses public folders, which phones connect, and what else sends mail through it. Scanners, accounts packages and old line-of-business apps are the usual surprises.

2. Check which Outlook people have. If it's classic Outlook 2016 or later, you're in the supported range. If it's the new Outlook, you'll need to change that or look elsewhere.

3. Try it on a spare server with a test domain. Turn on the Exchange support, point a copy of classic Outlook and one phone at it, and use it for a week. Import a test mailbox with Vandelay and check calendars and shared mailboxes came across.

4. Don't forget the boring part of running mail. Wherever your mail ends up, it needs SPF, DKIM and DMARC set up properly, or big providers will turn it away. I wrote about that with Outlook.com rejecting mail without DMARC. And it needs backups you've actually tried restoring.

The bigger point

For years, "get off Exchange" meant "move to Microsoft 365". That's a perfectly good answer for lots of businesses. It's nice to see a free, open-source option that classic Outlook users can connect to without retraining everyone.

The mailboxes are rarely the hard part, though. It's the bespoke system that relays invoices through the old server. If the person who wrote it has gone, the team at Dev Partners take on existing software and can change how it sends mail. They've also written about what happens if your software supplier goes bust, which is the same question about owning what you depend on.

Moving off an old Exchange server, to wherever it's going, is the kind of job my fix-up projects are for.