SMTP server

Programmable, distributed MTA

Stalwart's MTA delivers your outbound mail and accepts the inbound traffic for it, with sender authentication, transport-layer security, a fault-tolerant queue and a programmable filter pipeline, all in the same product as the rest of the server. Run it next to the mail store on a small deployment, or pull it out into a dedicated outbound tier when the volume grows.

  • Programmable
  • Distributed
admin.stalw.art / Dashboard / Delivery
Stalwart delivery dashboard with queued messages, session and delivery times, sent DSNs and reports, and a received messages chartStalwart delivery dashboard with queued messages, session and delivery times, sent DSNs and reports, and a received messages chart
Sender and message authentication

Comprehensive sender and message authentication.

Sender authentication is what stops a stranger from emailing your customers as you, and what stops a forged message from your bank from reaching your inbox. Stalwart supports the latest standards in sender and message authentication, with both verification and reporting paths, and pairs them with the automated DKIM rotation on the mail server side so signing keys are generated, published and retired on schedule.

admin.stalw.art / Reports / Inbox / DMARC
Stalwart DMARC aggregate report from Microsoft with sender, subject and reporting periodStalwart DMARC aggregate report from Microsoft with sender, subject and reporting period
  • DMARC verification, alignment checking and reporting.
  • DKIM signing, verification and failure reporting.
  • DKIM2 signing and verification, including post-quantum signatures.
  • SPF policy evaluation and failure reporting.
  • ARC verification on inbound mail.
  • Reverse-DNS validation.
  • Automatic ingestion of received DMARC, TLS-RPT and ARF reports.
Transport security

Strong transport security between servers.

Stalwart protects mail in transit between servers with the current transport-security standards, so messages stay encrypted, authenticated end to end, and protected from silent downgrade. TLS reports flow in both directions; TLSA records stay in sync with the same automated DNS management that handles MX and DKIM, so DANE keeps validating after a certificate rollover without a second tool in the loop.

admin.stalw.art / Emails / Delivery tests
Stalwart delivery test to mailbox.org passing MX, MTA-STS, TLS-RPT, DANE, STARTTLS and SMTP stages with timingsStalwart delivery test to mailbox.org passing MX, MTA-STS, TLS-RPT, DANE, STARTTLS and SMTP stages with timings
  • DANE (DNS-Based Authentication of Named Entities) for outbound TLS.
  • MTA-STS policy fetching and enforcement.
  • SMTP TLS Reporting delivery and ingestion.
  • Automatic TLSA refresh with ACME certificate rotation.
Encryption gateway

Outbound encryption with each recipient's public key.

Transport security protects a message between two servers; the encryption gateway protects it all the way to the recipient's mailbox. Before delivery to another domain, Stalwart finds each recipient's OpenPGP key or S/MIME certificate, encrypts a separate copy for every recipient that has one, and signs each copy again with DKIM and DKIM2 so DMARC still passes. A policy expression decides, per recipient, whether encryption is skipped, opportunistic or required; a required recipient without a usable key gets a bounce instead of a plaintext message.

Read the encryption gateway

  • Key discovery over Web Key Directory, keys.openpgp.org, HKP and DNSSEC-validated OPENPGPKEY and SMIMEA records.
  • Key harvesting from signed, DMARC-authenticated incoming mail.
  • Trust levels, key pinning and administrator approval of new keys.
  • Post-quantum ML-KEM for OpenPGP (RFC 9980) and S/MIME (RFC 9936).
  • Subject hiding through header protection (RFC 9788).
Distributed virtual queues

Advanced queue management for efficient delivery.

Stalwart manages outbound delivery with a distributed, fault-tolerant queue, so high-volume mailers, transactional traffic and DMARC report streams do not interfere with each other and a node failure never strands its messages. Each virtual queue carries its own concurrency, retry policy and quota; routing rules can branch on listener, sender, recipient or any other message metadata.

Read the outbound queue docs

admin.stalw.art / Emails / Queued
Stalwart queued message with envelope sender, recipients, next retry and notification scheduleStalwart queued message with envelope sender, recipients, next retry and notification schedule
  • Distributed, fault-tolerant queue store; no per-node local spool.
  • Unlimited virtual queues with per-queue concurrency.
  • Delayed delivery, priority delivery and per-queue quotas.
  • Dynamic routing rules and per-domain throttling.
  • Smart-host and relay routing for upstream submission.
Filter pipeline

Programmable filtering, at every SMTP stage.

Inbound mail can be filtered at every SMTP stage so abusive traffic is rejected as early as possible and legitimate traffic only pays for the checks it actually needs. Sieve scripts cover server-side rules; milter and MTA Hooks plug into existing filtering infrastructure; the built-in spam filter is always available without an extra daemon to install.

Read milterRead MTA Hooks

  • Sieve scripting with every registered extension.
  • Milter for Rspamd, ClamAV, SpamAssassin or any sendmail-compatible filter.
  • MTA Hooks for HTTP + JSON filters.
  • Built-in spam and phishing filter; no external Rspamd required.
  • Inbound concurrency and rate limiting.
Envelope and message rewriting

Policy enforcement on every message.

Compliance disclaimers, address normalisation and attachment policy should be enforced by the server, not asked of every user. Stalwart can rewrite envelope addresses, add or remove headers, append disclaimers and strip attachments before queueing or delivery, with rules that branch on listener, sender, recipient or any other message metadata.

Read message rewriting

  • Sender, recipient and domain address rewriting.
  • Header add, modify and remove.
  • Body modification and attachment policy.
  • Programmable rules per listener, sender or recipient.
Web admin

Queue, reports and live tracing in a browser.

An SMTP operator should not need a terminal to do day-to-day work. The web admin covers queue management for messages and outbound DMARC and TLS reports, visualisation of received DMARC, TLS-RPT and ARF reports, log search and live tracing of an in-flight transaction.

admin.stalw.art / Observability / Live Tracing
Stalwart live tracing streaming TLSA match and DANE authentication events for an outbound deliveryStalwart live tracing streaming TLSA match and DANE authentication events for an outbound delivery
  • Queue management for messages and outbound reports.
  • Received DMARC, TLS-RPT and ARF (failure) report visualisation.
  • Live tracing and message delivery history.
  • Log viewer with search and filtering.
High availability

Seamless failover with distributed queues.

With its distributed message-queue design, Stalwart's MTA is built for high availability. Unlike traditional MTAs that rely on local storage for queues, Stalwart shares the queue across the cluster, so any node can take over message delivery if another one fails and no message is stranded on a downed host. Adding outbound nodes increases delivery throughput without changing the rest of the topology.

  • Distributed, fault-tolerant SMTP queue.
  • Any node delivers any message; no per-node spool.
  • Node autodiscovery for streamlined network expansion.
  • Network partition-tolerant failure detection.
  • Dedicated outbound nodes for high-volume delivery tiers.