How New Open Source Mail Servers and Clients Make Self-Hosting Practical Again

How to Leave Gmail and Office 365 at Any Scale

Three kinds of users want out of the large providers: organizations on Office 365 or Google Workspace, people with a Gmail address, and individuals who want to run their own server. Whatever the size, open source offers these users a path forward.

For a large organization, migration is where projects stall. Stalwart's import tool, Vandelay, moves mailboxes from Exchange or a Google Takeout archive into any JMAP server. A migration proxy sits in front of the old and new servers and routes each user to the one that hosts their mailbox; accounts can move one at a time without downtime. While there are plans to add native Exchange protocols to a release before the end of 2026, so users can keep Outlook as a mail client, migrating accounts one at a time is slow. But possible: the largest deployment de Gennaro can name is Thundermail, Thunderbird’s email service built on Stalwart, which has about 100,000 accounts. Others include German universities and the state of Rhineland-Palatinate, with about 50,000 users.

Parula approaches the same problem from the desktop, to “decouple the difficult end user part, which is mostly social, from the difficult migration part, which is mostly nuts and bolts,” Bucksch says. Because Parula speaks Exchange's protocols, a small workgroup can try it against the company's existing Office 365 without risk. Once everyone uses Parula, the underlying server no longer matters, and IT can move at its own pace. Migrations of 10,000 people are underway, and several large projects with 30,000 users have begun self-hosting.

A person leaving Gmail is "the easy case," Bucksch says. "You just need to decide to do it." You can use any number of mail providers, like the free GMX, or the professional German provider mailbox.org. In fact, it works with any provider that does not put up a specific roadblock.

For the individual self-hoster, the answer is narrower. "My mom can't do it," Bucksch says. De Gennaro's recipe is short: a virtual server from a European host such as Hetzner or OVH, Stalwart, "and that's it."

Dufour adds a fourth user. Big tech operates at the scale of the planet, and self-hosting at the scale of one person. Email belongs between them with communities of interest: a federation of nonprofits, a group of companies, everyone working in a country's cultural sector. "If you have five engineers that manage 10,000 people, we think it could be possible to operate Aerogramme correctly," he says. Aerogramme is part of the solution at that medium scale, built to show that other collectives can copy the Deuxfleurs model and that a small team can provide a service that works, which is what most users care about.

Get Self-Hosted Mail into the Inbox

Configuration is no longer the obstacle. Ask why people don't self-host mail, and the first answer is usually the spam folder. To get through major providers’ filters, senders of more than 5,000 messages a day must authenticate with SPF, which lists the servers allowed to send for a domain; DKIM, which signs each message with the domain's key; and DMARC, which tells receivers what to do when those checks fail. But all three necessary DNS records can be published by any domain owner. And new servers do it automatically.

What remains is the server's IP reputation. Even with all three records, “Google and Microsoft will place every single email you send in the spam folder," De Gennaro says, if the server's address sits in a range with a bad history. Some popular hosting providers are on those lists before a customer sends anything. De Gennaro prefers a clean address because “you don’t want people to be in the middle of the emails you send”; he found his own by trial and error, moving from DigitalOcean to a Hetzner machine in Finland. The alternative is to relay outgoing mail through a delivery service such as SMTP2GO or Amazon SES, at the cost of a third party in the path.

There are two other ways around the problem. The first is how Deuxfleurs sends mail. The collective limits its send rate and buys connectivity from alternative ISPs whose addresses aren't listed as residential and whose reverse DNS it can configure. One member specializes in email and runs a shared outbound gateway; other hosters route mail for Gmail, Microsoft, and other hard destinations through it. Dufour likes that it's "not a technical approach but a human one." The second is a proposal DeGennaro says he hadn't put forward before. It directly resolves the issue of large providers filtering out self-hosted email without consequence: Self-hosters should organize and ask EU regulators to fine providers that discriminate.

JMAP, IMAP, or Exchange: Choosing a Protocol

The three projects don't agree on which mail protocol to build for. Each one reaches different devices and users, so an organization picks the one that fits.

Stalwart and Parula both agree that JMAP is the best protocol, which the Internet Engineering Task Force (IETF) standardized in 2019. Operators open one port for mail clients instead of two to four, and developers work with JSON over HTTP. De Gennaro describes IMAP as a book that has collected hundreds of extensions in its margins, until someone decided to write the whole book again on a clean page as JMAP. But end users, he says, won't notice a difference.

Deuxfleurs builds on IMAP anyway, for the devices people already own. Dufour uses an iPhone 8, and Guéneau carried an iPhone 7 until recently; Apple no longer updates either phone, and both read mail over IMAP. Deuxfleurs keeps Aerogramme's distributed core separate from the protocol, so the team could add JMAP later.

The third protocol suite is Microsoft's. Parula can choose from four different Exchange protocols. With one email address and one password, a user can connect mail, calendar, and contacts on almost any phone. Microsoft controls access to ActiveSync through patents on the protocol, which it is willing to enforce in court, and by limiting how even its own clients can interact with it. On October 1, 2026, Microsoft began blocking requests from Exchange Web Services to Exchange Online by default. It plans to shut EWS down completely in April 2027, so open source email clients relying on it will be cut off from Exchange Online mailboxes unless they move.

In Bucksch's account, Microsoft and Google already make it hard for independent clients to log in; Parula gets in through a protocol they figured out while building Owl, Beonex's Thunderbird add-on for Office 365. Guéneau's preferred lever is policy, in the form of EU rules requiring devices to support all standardized protocols, on the model of the repairability score that France made mandatory in 2021.

Buy Linux Magazine

Related content

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News