Skip to content

Stalwart Mail Server

Rust mail and collaboration server with JMAP, IMAP, SMTP, CalDAV and CardDAV

Copyleft (OSI) · AGPL-3.0
  • Self-hosted

Listed by , founder & editor

76

Health

Thriving

Overview

Stars

16,233

Last commit

today

Nov 2026

Repository age

3 years

since Mar 2023

Latest version

v1.2.0

Nov 2026

Contributors

–

5 active in 90 days

Releases

25

last 12 months

Docker pulls

3.7M

stalwartlabs/stalwart

Language

Rust

Stalwart is a mail and collaboration server written in Rust. One program provides SMTP, IMAP4, POP3, JMAP, ManageSieve, CalDAV, CardDAV and WebDAV, so you do not need to combine Postfix, Dovecot and separate calendar software.

The SMTP side includes DMARC, DKIM, SPF, ARC, DANE and MTA-STS, with automated DKIM key rotation. Built-in spam and phishing filtering uses rules, a statistical classifier, DNS blocklists, Pyzor and optional AI classification through OpenAI-compatible, Anthropic, Google Gemini or Ollama models. Storage backends include RocksDB, FoundationDB, PostgreSQL, MySQL, SQLite, S3-compatible storage, Azure and Redis. Full-text search covers 17 languages. It also supports multi-tenancy, per-user quotas, and OpenPGP and S/MIME encryption.

It is licensed AGPL-3.0 and ships as a Docker image. It can stand in for Postfix, Exchange or a hosted mailbox, but it has no Outlook MAPI or ActiveSync support and no full bundled webmail.

Who it's for

Admins replacing a Postfix and Dovecot stack

One server covers SMTP, IMAP, JMAP and calendars and contacts with a single configuration.

Skip if: You have a tuned Postfix setup and no reason to migrate.

Small organizations hosting mail on their own domain

Spam filtering, DKIM management and automatic account discovery are built in.

Skip if: You do not want to run and maintain a mail server.

Hosting providers needing tenant isolation

Multi-tenancy with domain isolation and per-tenant quotas is built in.

Skip if: You need Outlook MAPI or ActiveSync clients.

The problem it solves

Self-hosted mail usually means assembling an SMTP server, an IMAP server, spam filters and a calendar service. Stalwart combines them into one server with modern protocols.

Strengths

  • One Rust server for SMTP, IMAP, POP3, JMAP, CalDAV, CardDAV and WebDAV
  • Built-in DMARC, DKIM, SPF, ARC, DANE and MTA-STS
  • Pluggable storage including RocksDB, PostgreSQL, S3 and more
  • Multi-tenancy with per-user and per-tenant quotas
  • Docker image available; 25 releases in the last year

Trade-offs

  • No native Outlook MAPI or ActiveSync support
  • No full bundled webmail or desktop client
  • AGPL-3.0 license has network-use obligations
  • You must run and maintain your own mail server

Stalwart Mail Server replaces

Self-host Stalwart Mail Server

Self-hostable
Yes
Docker image
stalwartlabs/stalwart

Frequently asked questions

Is Stalwart free?

Yes. It is open source under AGPL-3.0.

Can I self-host it?

Yes. It is designed for self-hosting and a Docker image is available.

Does it work with Outlook?

Not through MAPI or ActiveSync. You can use standard IMAP, SMTP, CalDAV and CardDAV clients.

Does it include spam filtering?

Yes. It has rules, a statistical classifier, DNS blocklists, Pyzor, greylisting and optional AI classification.

Other Gmail alternatives

Compare all 10 Gmail alternatives →

Similar tools in Email software

Maddy Mail Server

Email software

All-in-one mail server in one Go daemon for small self-hosters

6.1k 346 4 days ago Thriving GPL-3.0

Replaces Gmail

Inbox Zero

Email software

AI email assistant and client for Gmail and Outlook, self-hostable with Docker

13k 1.7k today Active AGPL-3.0

NeoMutt

Email software

Terminal email client for people who live in the shell and want Mutt plus patches

3.9k 357 4 days ago Thriving GPL-2.0

Replaces Microsoft Outlook

Mox

Email software

All-in-one mail server with webmail for self-hosters running email on their own domain

6k 244 27 days ago Active MIT

Replaces Yahoo! MailGmail

Mailspring

Email software

Desktop email client for Mac, Windows and Linux with unified inbox, snooze and send later

18k 1.1k today Active GPL-3.0

Replaces Microsoft Outlook