talira

Stalwart

Secure, scalable mail & collaboration server with comprehensive protocol support

open coreAGPL-3.0-onlyself-hostablefree

Stalwart is an all-in-one mail and collaboration server written in Rust: one program that is your SMTP server, IMAP, POP3 and JMAP mail server, CalDAV and CardDAV server for calendars and contacts, and WebDAV file store, with a built-in spam and phishing filter. It handles DKIM, SPF, DMARC, ARC, DANE and MTA-STS itself, gets TLS certificates through ACME, stores data in RocksDB, FoundationDB, PostgreSQL, MySQL, SQLite or S3-compatible storage, and runs as one node or a cluster on Linux, macOS, FreeBSD, Windows, Docker or Kubernetes. Users can sign in from LDAP, SQL or an OpenID Connect directory, with passkeys and TOTP, and admins manage it from a web interface. The Community edition is free under AGPL-3.0 with no mailbox limit; the Enterprise edition, licensed per mailbox, adds multi-tenancy, LLM spam classification, SCIM and other features.

Ways to install

Problems it solves

  • run our own email server without stitching together Postfix, Dovecot, a spam filter and a CalDAV server
  • host email, calendars, contacts and shared files for our company on one server we control
  • move our organisation's email off Google Workspace or Microsoft 365 to a server we host
  • my self-hosted mail keeps landing in spam: I need DKIM, SPF and DMARC set up properly
  • a mail server that supports JMAP for a modern mail client
  • filter spam and phishing on our own mail server without a separate appliance
  • run a mail server cluster across regions so email keeps flowing if one node fails
  • store mailboxes in PostgreSQL or S3 object storage instead of local Maildir folders
  • encrypt each user's mailbox at rest with their own OpenPGP key or S/MIME certificate
  • let users log in to our mail server with passkeys and our OIDC or LDAP directory
  • host email for several client companies on one server, each with its own domains and admins
  • write Sieve rules that sort and filter mail on the server
  • a memory-safe mail server written in Rust that has had a security audit
  • get TLS certificates for our mail server automatically through Let's Encrypt

Features

  • JMAP for Mail, Calendars, Contacts, Sieve and File Storage
  • IMAP4rev2/IMAP4rev1, POP3 and ManageSieve servers
  • SMTP with DMARC, DKIM (v1 and v2), SPF and ARC; DANE, MTA-STS and SMTP TLS reporting; automatic DKIM key rotation
  • CalDAV, CardDAV and WebDAV with sharing
  • built-in spam and phishing filter: statistical classifier, AI classifier (OpenAI-compatible, Anthropic, Gemini, Ollama), Pyzor, spam traps
  • storage on RocksDB, FoundationDB, PostgreSQL, MySQL, SQLite, S3-compatible, Azure or Redis
  • full-text search in 17 languages, built in or via Meilisearch, Elasticsearch, OpenSearch, PostgreSQL or MySQL
  • encryption at rest with OpenPGP or S/MIME, including post-quantum ML-KEM
  • automatic TLS certificates with ACME
  • peer-to-peer clustering or coordination via Kafka, Redpanda, NATS or Redis; Kubernetes support
View 4 more
  • LDAP, OIDC, SQL or built-in authentication; TOTP, passkeys and app passwords
  • OpenTelemetry and Prometheus, webhooks and alerts
  • web-based administration with queue management, DMARC/TLS report views and a log viewer
  • independently security audited

Limitations

  • Doesn't offer hosted Stalwart yet: Stalwart Enterprise Cloud is planned for 2027, with an early-access list8

Ways to run it

Stalwart Community

You run it, AGPL-3.0-only

free, no mailbox limit910

Not included

  • Enterprise features: multi-tenancy, per-tenant branding, deleted-mail archiving and undelete, live telemetry and alerts, LLM spam classification, SCIM provisioning, read replicas and sharded storage11

You arrange

  • a Linux, macOS, FreeBSD or Windows server, or Docker/Kubernetes
  • a public IP address and DNS records for your mail domains
  • support: community channels only

Self-hosting docs

Stalwart Enterprise

You run it, Stalwart Enterprise License v2 (source-available)

per mailbox per year: EUR 2.00 (25-499), 1.70 (500-999), 1.45 (1,000-4,999), lower in larger tiers; minimum 25 mailboxes101112

Only in this edition

  • multi-tenancy with per-tenant accounts, domains and branding
  • deleted-mail archive and undelete
  • live telemetry and metric alerts
  • LLM-assisted spam classification
  • SCIM 2.0 provisioning
  • read replicas and sharded storage
  • Premium Support

You arrange

  • an Enterprise licence key tied to your domain

Self-hosting docs

Capabilities

Has single sign-onplan not known
Sends webhooksplan not known

Alternatives

The same job

These do what Stalwart does.

  1. Mail-in-a-Box Mail-in-a-Box lets you become your own mail service provider in a few easy steps
  2. docker-mailserver Production-ready fullstack but simple mail server running inside a container
  3. Maddy Mail Server Composable all-in-one mail server
  4. Mailu Insular email distribution - mail server as Docker images
  5. iRedMail Full-featured, open source mail server solution for mainstream Linux/BSD distributions
  6. mailcow The mailserver suite with the 'moo'

Compare Stalwart with the top 3