Back to services

Stalwart Mail Server

All-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features.

View alternatives to Stalwart Mail Server
Suggest edit
Open source
Self-hostable
AGPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: We couldn't fetch the official website stalw.art this time, so the following is written based on what is already known about the project. Please refer to the official website and documentation for specific details.

Overview

Stalwart Mail Server is an open-source mail server written in Rust. A single piece of software provides complete email sending, receiving and storage. It combines an MTA (SMTP) and mail access services (JMAP, IMAP, POP3), so you no longer need to deploy several separate components such as Postfix, Dovecot and Rspamd, which makes deployment and maintenance simpler.

Key Features

  • Multi-protocol support: SMTP handles sending and receiving, IMAP4 and POP3 handle mail access, and the newer JMAP protocol is also supported, which suits modern clients and mobile devices.
  • Email security: Built-in email authentication mechanisms such as DKIM, SPF, DMARC and ARC, plus support for TLS encrypted transport and automatic certificate issuance (ACME).
  • Anti-spam and anti-phishing: Built-in spam filtering, including rule-based and statistical detection, DNSBL checks and more.
  • Sieve filtering: Supports Sieve scripts, so mail can be processed automatically on the server according to rules.
  • Multiple storage backends: Data, full-text indexes and message content can be stored in different backends, such as RocksDB, SQLite, PostgreSQL, MySQL, FoundationDB, and S3-compatible object storage.
  • Flexible authentication directories: Users can come from the built-in directory, an SQL database or LDAP, and OpenID Connect (OIDC) can also be integrated.
  • Web admin interface: Manage domains, accounts, queues, configuration and logs on the web.

Target Users and Use Cases

  • Individuals and tech enthusiasts who want to self-host their email and control their own data
  • Small and medium-sized businesses and organizations that need business email for their staff
  • Administrators who want a single component to replace the traditional Postfix + Dovecot combination
  • Service providers that need to support large numbers of users and run clustered deployments

Core Strengths

  • Memory-safe and high-performing: Rust provides memory safety, so it is less prone to the memory vulnerabilities common in traditional C-based servers, while also using few resources and handling concurrency well.
  • All-in-one: Sending, receiving, storage, filtering and management are all in one program, with centralized configuration and none of the hassle of integrating multiple components with each other.
  • Scalable: Thanks to replaceable storage backends, it can scale from a small single-machine deployment to a distributed cluster.
  • Modern protocol support: One of the first to fully implement JMAP.

Installation and Deployment

  • Prebuilt binaries for the major platforms and an official installation script are provided, so it can be installed directly on Linux as a system service.
  • Official Docker images are provided, making container deployment easy.
  • After installation, you configure domains, DNS records (MX, DKIM, SPF, DMARC, etc.) and accounts through the web admin interface.

Technical Requirements

  • A server that can open the mail-related ports (25, 465, 587, 993, etc.), ideally with a static public IP and the ability to set up reverse DNS (PTR).
  • A domain whose DNS you can manage yourself.
  • The default embedded storage backend has modest resource requirements, so an ordinary VPS is enough for small deployments.

License

The community edition is open-source software under the AGPL-3.0 license. There is also a commercial edition that offers additional enterprise features and technical support.