Stalwart delivers email, calendars, contacts, and file sharing from a single Rust-based server. Clients can use JMAP, IMAP, POP3, SMTP, CalDAV, CardDAV, WebDAV, and Exchange-style APIs.
Overview
Stalwart is an open-source mail and collaboration server written in Rust. It combines inbound and outbound mail, calendaring, contact management, and file storage in one deployable platform instead of separate MTA, mailbox, spam, calendar, and contacts services.
The mail stack covers JMAP, IMAP4 with extensions, POP3, and SMTP with distributed queues, delayed delivery, routing rules, throttling, DKIM rotation, sieve scripting, and milter or HTTP MTA hook integration. Outlook and ActiveSync clients can use Exchange Web Services with autodiscover, global address list, and offline address book support.
Collaboration uses CalDAV, CardDAV, and WebDAV alongside JMAP APIs for calendars, contacts, and files, with scheduling, sharing ACLs, and room booking. Built-in spam and phishing filtering includes statistical and optional AI classifiers, DNS blocklists, greylisting, sender reputation, and phishing heuristics evaluated at SMTP time.
Operators manage the server through a web dashboard and CLI, with pluggable storage and search backends, LDAP or OIDC authentication, OpenTelemetry metrics, clustering via Kubernetes or similar orchestrators, and per-mailbox encryption using OpenPGP or S/MIME.
Key features
- JMAP, IMAP, POP3, and SMTP mail
- CalDAV, CardDAV, and WebDAV collaboration
- Exchange Web Services for Outlook clients
- Built-in spam and phishing filters
- Web admin dashboard and self-service portal
- Pluggable SQL, NoSQL, and object storage
- OpenPGP and S/MIME mailbox encryption
- Clustering with optional Kafka or Redis coordination
Use cases
- Self-hosted organizational email
- Mail hosting with multi-tenant isolation
- Replacing separate calendar and contact servers
- High-availability clustered mail infrastructure
- Secure mail with encryption at rest and in transit
Open-source alternative to