Overview of Stalwart Mail & Collaboration Server
mainStalwart is an open-source, secure, and scalable mail and collaboration server written in Rust. It provides comprehensive protocol support for email, calendaring, contact management, and file storage. It is designed for high availability and can scale from small individual setups to large-scale deployments using cluster coordination tools like Kafka, Redpanda, NATS, or Redis.
Core Capabilities
Email Protocols
- JMAP: Full support for Mail, Sieve Scripts, WebSocket, Blob Management, and Quotas.
- IMAP: Supports IMAP4rev1, IMAP4rev2, and ManageSieve.
- POP3: Supports STLS and SASL extensions.
- SMTP: Includes built-in DMARC, DKIM (v1 and v2), SPF, and ARC. Supports DANE, MTA-STS, and SMTP TLS reporting, with automated DKIM key rotation.
Collaboration & Storage
- Calendaring: CalDAV, CalDAV Scheduling, and JMAP for Calendars.
- Contacts: CardDAV and JMAP for Contacts.
- File Storage: WebDAV and JMAP for File Storage.
- Sharing: WebDAV ACL and JMAP Sharing with fine-grained access controls.
Security & Spam Protection
- Spam/Phishing: LLM-driven analysis, statistical classifiers, DNSBL checking, Pyzor integration, greylisting, and sender reputation monitoring.
- Encryption: S/MIME and OpenPGP for encryption at rest.
- TLS: Automatic certificate provisioning via ACME (supporting DNS-01, HTTP-01, etc.).
- Authentication: Supports OIDC, OAuth 2.0, LDAP, SQL, and 2FA-TOTP.
Extensibility & Observability
- Storage Backends: RocksDB, FoundationDB, PostgreSQL, MySQL, SQLite, S3-Compatible, Azure, and Redis.
- Search: Built-in engine (17 languages) or external backends like Meilisearch, ElasticSearch, OpenSearch, PostgreSQL, or MySQL.
- Observability: OpenTelemetry, Prometheus, and Webhooks for events and alerts.