Stalwart: The Free Open-source Mail Server with Multi-Protocol Support

All-in-one Mail & Collaboration server. Secure, scalable and fluent in every protocol (IMAP, JMAP, SMTP, CalDAV, CardDAV, WebDAV).

Table of Content

What is Stalwart?

Stalwart is an open-source mail & collaboration server with JMAP, IMAP4, POP3, SMTP, CalDAV, CardDAV and WebDAV support and a wide range of modern features. It is written in Rust and designed to be secure, fast, robust and scalable.

Features

Key features:

  • Email server with complete protocol support:
  • Collaboration server:
  • Spam and Phishing built-in filter:
    • Comprehensive set of filtering rules on par with popular solutions.
    • LLM-driven spam filtering and message analysis.
    • Statistical spam classifier with automatic training capabilities and address book integration.
    • DNS Blocklists (DNSBLs) checking of IP addresses, domains, and hashes.
    • Collaborative digest-based spam filtering with Pyzor.
    • Phishing protection against homographic URL attacks, sender spoofing and other techniques.
    • Trusted reply tracking to recognize and prioritize genuine e-mail replies.
    • Sender reputation monitoring by IP address, ASN, domain and email address.
    • Greylisting to temporarily defer unknown senders.
    • Spam traps to set up decoy email addresses that catch and analyze spam.
  • Flexible:
    • Pluggable storage backends with RocksDBFoundationDBPostgreSQLmySQLSQLiteS3-CompatibleAzureRedis and ElasticSearch support.
    • Full-text search available in 17 languages.
    • Sieve scripting language with support for all registered extensions.
    • Email aliases, mailing lists, subaddressing and catch-all addresses support.
    • Automatic account configuration and discovery with autoconfig and autodiscover.
    • Multi-tenancy support with domain and tenant isolation.
    • Disk quotas per user and tenant.
  • Secure and robust:
    • Encryption at rest with S/MIME or OpenPGP.
    • Automatic TLS certificate provisioning with ACME using TLS-ALPN-01DNS-01 or HTTP-01 challenges.
    • Automated blocking of IP addresses that attack, abuse or scan the server for exploits.
    • Rate limiting.
    • Security audited (read the report).
    • Memory safe (thanks to Rust).
  • Scalable and fault-tolerant:
    • Designed to handle growth seamlessly, from small setups to large-scale deployments of thousands of nodes.
    • Built with fault tolerance and high availability in mind, recovers from hardware or software failures with minimal operational impact.
    • Peer-to-peer cluster coordination or with KafkaRedpandaNATS or Redis.
    • KubernetesApache Mesos and Docker Swarm support for automated scaling and container orchestration.
    • Read replicas, sharded blob storage and in-memory data stores for high performance and low latency.
  • Authentication and Authorization:
    • OpenID Connect authentication.
    • OAuth 2.0 authorization with authorization code and device authorization flows.
    • LDAPOIDCSQL or built-in authentication backend support.
    • Two-factor authentication with Time-based One-Time Passwords (2FA-TOTP)
    • Application passwords (App Passwords).
    • Roles and permissions.
    • Access Control Lists (ACLs).
  • Observability:
    • Logging and tracing with OpenTelemetry, journald, log files and console support.
    • Metrics with OpenTelemetry and Prometheus integration.
    • Webhooks for event-driven automation.
    • Alerts with email and webhook notifications.
    • Live tracing and metrics.
  • Web-based administration:
    • Dashboard with real-time statistics and monitoring.
    • Account, domain, group and mailing list management.
    • SMTP queue management for messages and outbound DMARC and TLS reports.
    • Report visualization interface for received DMARC, TLS-RPT and Failure (ARF) reports.
    • Configuration of every aspect of the mail server.
    • Log viewer with search and filtering capabilities.
    • Self-service portal for password reset and encryption-at-rest key management.

Platforms

  • Windows
  • Linux
  • macOS

License

This project is dual-licensed under the GNU Affero General Public License v3.0 (AGPL-3.0; as published by the Free Software Foundation) and the Stalwart Enterprise License v1 (SELv1):

  • The GNU Affero General Public License v3.0 is a free software license that ensures your freedom to use, modify, and distribute the software, with the condition that any modified versions of the software must also be distributed under the same license.
  • The Stalwart Enterprise License v1 (SELv1) is a proprietary license designed for commercial use. It offers additional features and greater flexibility for businesses that do not wish to comply with the AGPL-3.0 license requirements.
GitHub - stalwartlabs/stalwart: All-in-one Mail & Collaboration server. Secure, scalable and fluent in every protocol (IMAP, JMAP, SMTP, CalDAV, CardDAV, WebDAV).
All-in-one Mail & Collaboration server. Secure, scalable and fluent in every protocol (IMAP, JMAP, SMTP, CalDAV, CardDAV, WebDAV). - stalwartlabs/stalwart


Are You Truly Ready to Put Your Mobile or Web App to the Test?

Don`t just assume your app works—ensure it`s flawless, secure, and user-friendly with expert testing. 🚀

Why Third-Party Testing is Essential for Your Application and Website?

We are ready to test, evaluate and report your app, ERP system, or customer/ patients workflow

With a detailed report about all findings

Contact us now






Open-source Apps

9,500+

Medical Apps

500+

Lists

450+

Dev. Resources

900+

Read more