Stalwart Mail Server

All-in-one mail and collaboration server in Rust.

Last reviewed 5 December 2026 · AGPL-3.0 · Email

Licence
Type
Self-hosted
GitHub stars
★ 16.8k
Last commit
December 2026
First release
2022
Hosted version
No

What is Stalwart Mail Server?

Stalwart is a modern, secure mail server written in Rust that supports JMAP, IMAP, POP3 and SMTP, plus CalDAV and CardDAV. It includes spam filtering, DKIM, SPF and DMARC out of the box.

Note: The community edition is AGPL-3.0; enterprise features are under a separate licence.

Key features

  • JMAP, IMAP, POP3 and SMTP
  • CalDAV and CardDAV built in
  • Built-in spam and phishing filter
  • Written in memory-safe Rust

Stalwart Mail Server as an open source alternative

Stalwart Mail Server is listed on 2 of our comparison pages as an open source replacement for Gmail and Microsoft Exchange. Compare it with the other options:

Licence

Stalwart Mail Server is released under the AGPL-3.0 licence, a strong copyleft (network) licence. More AGPL-3.0 software →

Stalwart Mail Server: FAQ

Is Stalwart Mail Server open source?

Yes. Stalwart Mail Server is released under the AGPL-3.0 licence (strong copyleft (network)), and its source code is public. The community edition is AGPL-3.0; enterprise features are under a separate licence.

Is Stalwart Mail Server free?

The software is free to use and self-host.

What does Stalwart Mail Server replace?

Stalwart Mail Server is an open source alternative to Gmail and Microsoft Exchange.

Can I self-host Stalwart Mail Server?

Yes. Stalwart Mail Server is a server application you can install on your own server or VPS, usually with Docker.

Similar open source projects

mailcow

GPL-3.013.9k

Dockerised mail server suite with web UI.

Replaces Gmail, Microsoft Exchange

Self-hosted
Self-hostedEmail

Tuta

GPL-3.08.2k

Encrypted email and calendar from Germany.

Replaces Gmail, Microsoft Outlook

Cloud option
Mobile appEmail

More AGPL-3.0 projects

Nextcloud

AGPL-3.037.7k

Self-hosted file sync, sharing and collaboration.

Replaces Google Drive, Dropbox, Microsoft OneDrive, Apple iCloud

Self-hostedCloud option
Self-hostedCloud Storage & Photos

Signal

AGPL-3.029.7k

The most trusted private messenger.

Replaces WhatsApp

Cloud option
Mobile appTeam Chat & Messaging

Immich

AGPL-3.0121k

Self-hosted photo and video backup like Google Photos.

Replaces Google Photos, Apple iCloud

Self-hosted
Self-hostedCloud Storage & Photos

ONLYOFFICE Docs

AGPL-3.07.2k

Office suite with the closest Microsoft Office compatibility.

Replaces Microsoft Office, Google Docs, Microsoft Word, Microsoft Excel

Self-hostedCloud option
Self-hostedOffice & PDF

Mastodon

AGPL-3.050.7k

Decentralised social network, not for sale.

Replaces X (Twitter), Threads

Self-hostedCloud option
Self-hostedSocial Networks

Element

AGPL-3.013.7k

Secure messenger built on the Matrix protocol.

Replaces Slack, Microsoft Teams, Discord, WhatsApp

Self-hostedCloud option
Self-hostedTeam Chat & Messaging
Browse 350+ open source alternativesSearch by product, category or licence