Mail server

Mail server fluent in every protocol

Stalwart speaks every standard mail protocol your users' clients already use, so no one in your fleet gets left behind. JMAP for new apps, IMAP for everything else. Storage, search, external directory and automated DNS are part of the same server, so what you install is one mail server, not a stack of services to glue together.

Get started
  • Modern
  • Scalable
Stalwart network dashboard showing per-protocol active and total connection counters and an SMTP connections chart
JMAP

First-class JMAP support.

JMAP is the modern replacement for IMAP, designed around JSON over HTTP instead of the old line-based wire protocol. New mail appears the moment it arrives, every device stays in step, and the protocol is efficient enough to feel native to a mobile or web app. Stalwart supports every JMAP extension, so any compliant client gets the full feature set.

  • JMAP for Mail.
  • JMAP for Sieve Scripts.
  • JMAP over WebSocket.
  • JMAP Blob Management.
  • JMAP Quotas.
jmap-session.json
{
  "using": ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:mail"],
  "methodCalls": [
    ["Email/changes", { "accountId": "u1", "sinceState": "42" }, "0"],
    ["Email/get", {
      "accountId": "u1",
      "#ids": { "resultOf": "0", "name": "Email/changes", "path": "/created" },
      "properties": ["subject", "from", "receivedAt"]
    }, "1"]
  ]
}
IMAP and POP3

No client left behind.

Stalwart ships full IMAP4rev2 with IMAP4rev1 fallback, plus a POP3 server for older devices, so an existing fleet keeps working without forcing a client migration. Per-account quotas show up directly in the client, and users can edit their own server-side filters through any ManageSieve client.

  • IMAP4rev2 and IMAP4rev1 with dozens of supported extensions.
  • IMAP QUOTA reporting per account.
  • ManageSieve for user-managed server-side filters.
  • POP3 with STLS and SASL for older devices.
Apple Mail macOS / iOS / iPadOS IMAP CalDAV Outlook desktop & mobile IMAP Autodiscov Thunderbird Mozilla autoconfig IMAP CalDAV GNOME Evolution Linux desktop IMAP CardDAV K-9 Mail / FairEmail Android IMAP POP3 JMAP-native modern apps JMAP JMAP · IMAP4rev2 · POP3 · ManageSieve Every client speaks something Stalwart speaks
Automated DNS

Hands-off DNS for every mail domain.

DNS is the most common reason a mail deployment breaks, and the hardest one for a generalist administrator to debug. Stalwart can publish and maintain a domain's records directly against a managed zone, so the manual copy-and-paste step that breaks the most deployments goes away. Records reconcile on save, propagation is checked before a key is activated, and ACME DNS challenges run through the same automation.

  • Direct integration with Cloudflare, Route 53, Google Cloud DNS, DigitalOcean, OVH and others.
  • Dynamic DNS updates with TSIG or SIG(0) for self-hosted authoritative servers.
  • Automatic publication of MX, SPF, DKIM, DMARC, TLSA and autoconfig records.
$ORIGIN example.com. managed by Stalwart @ MX 10 mail.example.com. @ TXT "v=spf1 mx ~all" SPF 2026e._domainkey TXT "v=DKIM1; k=ed25519; p=MCo..." DKIM _dmarc TXT "v=DMARC1; p=quarantine; rua=..." DMARC _25._tcp.mail TLSA 3 1 1 a3b1...c4f9 _mta-sts TXT "v=STSv1; id=20260301T000000Z" MTA-STS _smtp._tls TXT "v=TLSRPTv1; rua=mailto:..." TLS-RPT autoconfig CNAME mail.example.com. autoconfig
Automated DKIM rotation

DKIM keys, rotated on a schedule.

Rotating DKIM signing keys on a schedule is recommended practice and easy to forget under operational pressure. Stalwart owns the full lifecycle: new keys are generated on schedule, published in DNS, activated only after propagation is observed, then retired and deleted on configurable timers.

  • Per-domain rotation cadence.
  • Selector templating with date and version variables.
  • Emergency rotation on demand for suspected key compromise.
Stalwart scheduled tasks list showing pending DKIM key rotations, ACME certificate renewals and outbound DMARC and TLS reports
ACME and TLS

Certificates that renew themselves.

Expired TLS certificates are a routine cause of avoidable outages. Stalwart implements ACME directly so renewals run well before expiry, every supported challenge type is available, and TLSA records are refreshed alongside the new certificate so DANE keeps validating without a second tool in the loop.

  • Every supported ACME challenge type.
  • External Account Binding for CAs that require it.
  • On-demand renewal triggered after a DNS update.
  • Automatic TLSA refresh after each rotation.
Stalwart handles every step 1 Cert issued Let's Encrypt / ZeroSSL / ... 2 60 days... cert in service 3 30 days left renewal triggered 4 Renewed no manual step 5 TLSA refresh DANE keeps validating 6 Served loop continues Certificate lifecycle, owned by Stalwart
Autoconfig and Autodiscover

Clients configure themselves.

Helpdesk tickets that begin "I can't get my email set up" disappear when a client can fetch its own settings from the server. Pointing a mail client at a Stalwart server returns IMAP, POP, SMTP, CalDAV and CardDAV settings without the user typing a host name. The modern UA Autoconfig discovery is served alongside the legacy Mozilla Autoconfig and Microsoft Autodiscover v1 and v2 formats, so old and new clients are both covered.

  • Modern UA Autoconfig discovery.
  • Mozilla Autoconfig for older Thunderbird-based clients.
  • Microsoft Autodiscover v1 and v2 for Outlook and Exchange clients.
Add account Email [email protected] Password •••••••••• Continue Settings found for example.com autoconfig.example.com Mozilla autoconfig autoconfig-v1.1 UA Autoconfig (modern) autodiscover.example.com Microsoft Autodiscover v1+v2 IMAP · SMTP · CalDAV · CardDAV settings Three probes, one good answer
Multi-tenancy and quotas

Multi-tenant from the ground up.

Stalwart was built for multi-tenancy from the start, so hosting many organisations on the same deployment stays safe by design. Accounts, domains and tenants are fully isolated; disk quotas are enforced per user and per tenant; aliases and catch-all addresses can be enabled, disabled or annotated; and a whole domain can be redirected onto another without touching the mailboxes underneath.

  • Multi-tenant by design, with per-tenant administrators and quotas.
  • Domain aliases (one domain pointing at another).
  • Email aliases with descriptions; the alias mechanism can be disabled per account.
  • Plus-addressing, sub-addressing, catch-all and mailing-list expansion.
  • Disk quotas per user and per tenant.
Stalwart accounts directory listing user accounts with email, full name and creation date
Sieve scripting

Filter, route and rewrite without leaving the server.

Mail rules belong on the server, where they apply to every device a user opens. Stalwart includes a full Sieve interpreter with every registered extension. User scripts run sandboxed and are managed through any standard ManageSieve client or JMAP; administrators run trusted scripts at SMTP stages with elevated permissions.

  • Every IANA-registered Sieve extension.
  • ManageSieve and JMAP for Sieve Scripts management.
  • Trusted and untrusted execution contexts.
filter.sieve
require ["fileinto", "imap4flags", "vacation", "envelope"];

# Newsletters land in their own folder.
if header :contains "List-Id" "@" {
  fileinto "INBOX/Newsletters";
  stop;
}

# Tag and route monitoring alerts.
if envelope :is "from" "[email protected]" {
  addflag "\\Flagged";
  fileinto "INBOX/Alerts";
  stop;
}

# Out-of-office reply, once per sender per week.
vacation :days 7
  "I am away until Monday. Will reply on return.";
Web admin

Manage everything from a browser.

Day-to-day administration happens in a browser, not in a config file or an SSH session. Account, domain, group and mailing-list management; SMTP queue and report visualisation; configuration of every server object; a log viewer with search; and a self-service portal for password reset and encryption-at-rest key management, all in one console.

  • Real-time dashboards and live tracing.
  • Account, domain, group, list and Sieve management.
  • Queue and report visualisation for DMARC, TLS-RPT and ARF.
  • Configuration of every server object from a single web admin.
Stalwart network settings