[1.2.0] - 2026-11-23
Upgrade instructions:
-
Add the new permissions to the default roles. Mail rules, junk e-mail lists, calendar settings and Exchange need new permissions, which default roles created by an earlier version do not include:
- User, group and administrator roles:
sysMailRule*,sysBlockedSender*,sysSafeSender*andsysCalendarSettings*. - Administrator role:
sysExchangeGetandsysExchangeUpdate.
Add these permissions manually using the recovery administrator or restart the server once with the environment variable
STALWART_UPDATE_ROLE_PERMISSIONS=trueto add them, then remove the variable. See Default roles on upgraded servers for details. - User, group and administrator roles:
-
Upgrade the WebUI to version 2.1.1.
Added
- Microsoft Exchange protocols for Outlook, Apple Mail, Calendar and Contacts, and ActiveSync devices (disabled by default):
- Exchange Web Services (EWS): mail, calendar, contacts, tasks, folders, sharing and delegates, free/busy, inbox rules, out of office, reminders, name resolution and distribution lists, streaming and pull notifications; schema versions Exchange 2010 SP2 to Exchange 2016 (
ewsVersion). - MAPI over HTTP (EMSMDB and NSPI) for Outlook for Windows in online and cached mode: incremental change synchronization, offline address book, delegate access, rules and junk e-mail settings, reminders, search folders and read receipts.
- Exchange ActiveSync 14.1 and 16.1: mail, calendar, contacts, tasks and notes, folder sync, Ping, SendMail, SmartReply, SmartForward, ItemOperations, MeetingResponse, ResolveRecipients, Search, Settings and out of office.
- Autodiscover (POX, SOAP and JSON v2) for EWS, MAPI over HTTP and ActiveSync.
- New
x:Exchangeobject (enable,ewsVersion,maxRequestSize,maxDevices,maxHeartbeat,maxObjectSize; permissionssysExchangeGetandsysExchangeUpdate) and a newexchangecache size setting. - Exchange clients share data with IMAP, JMAP, CalDAV and CardDAV: Exchange-only item properties are kept, categories are shared account-wide, and Outlook and EWS rules are stored as
x:MailRulerules. - Basic and OAuth authentication; NTLM and Kerberos are not supported.
- New
exchangeCargo feature (enabled by default) to build without the Exchange protocols.
- Exchange Web Services (EWS): mail, calendar, contacts, tasks, folders, sharing and delegates, free/busy, inbox rules, out of office, reminders, name resolution and distribution lists, streaming and pull notifications; schema versions Exchange 2010 SP2 to Exchange 2016 (
- Message Disposition Notifications:
- RFC 8098 - Message Disposition Notification
- RFC 9007 - Handling MDN with JMAP:
MDN/sendandMDN/parsemethods, capabilityurn:ietf:params:jmap:mdn.
- Calendar Availability:
- Per-account working hours in the new
x:CalendarSettingsobject (permissionssysCalendarSettings*). - Managed in the WebUI, over JMAP or through the CalDAV
calendar-availabilityproperty (RFC 7953), which generates and acceptsVAVAILABILITY. - Time outside working hours appears as
BUSY-UNAVAILABLEin iTIP free/busy and as unavailable periods in JMAPPrincipal/getAvailability. - New
shareFreeBusycalendar setting that lets users see each other's free/busy time without an explicit share, within the same tenant or across the whole server when tenants are not used. Applies to CalDAV scheduling, JMAP availability and EWS.
- Per-account working hours in the new
- Resource accounts for rooms and equipment:
- Capacity and location
- Delegates who manage the resource's calendar
- Automatic or manual booking of invitations
- Mail rules:
- Server-side rules in the new
x:MailRuleobject (permissionssysMailRule*), compiled together with the vacation response into one read-only Sieve script namedmanaged. - Conditions: sender and recipient addresses, addressed to me, subject, body, subject or body, any header, header exists, size, attachments and attachment name or type, importance, sensitivity, message type (meeting, delivery report, read receipt, automatic reply, signed, encrypted), mailing list, recipient address and plus-address, spam score, authenticated sender, received date range and a weekly schedule with an optional time zone.
- Actions: move, copy, Trash, Junk, not junk, mark as read, keywords, redirect or forward, set importance, reply with a template, reject (authenticated senders only) and discard.
- Junk e-mail lists: blocked senders, safe senders and safe recipients, plus delegation of meeting requests.
- Server-side rules in the new
- FoundationDB Rust native client:
- Native asynchronous Rust client replaces
libfdb_c. - Supports FoundationDB 7.1 to 8.0 and TLS, needs no client library installed on the host. Included in the standard build and Docker image.
- Compared with the previous
libfdb_cclient: 4.5x to 6.9x the throughput on point reads at 256 concurrent clients and 2.1x on key scans, 5x to 7x lower median latency, about 3x lower p99 latency at equal load, and roughly half the client CPU and a quarter of the client memory per point read. - The
libfdb_cbackend remains available with thefoundationdb-cfeature.
- Native asynchronous Rust client replaces
Changed
- FoundationDB: the separate
stalwart-foundationdbbuild, its Docker image and theinstall.sh --fdboption are removed; the standardstalwartbinary connects to FoundationDB. - OAuth: dynamically registered clients may use the device authorization grant and request the full access scope; they remain unverified and always require the user's consent.
- MTA: every message stored in a local mailbox gets a
Return-Pathheader from the envelope sender, whatever port or protocol it was submitted on. - Sieve:
- Vacation response is no longer replied to messages classified as spam, and the untrusted interpreter enforces
maxReceivedHeadersitself. :zonealso accepts IANA time zone names (non-standard extension), evaluated with daylight saving time at run time.
- Vacation response is no longer replied to messages classified as spam, and the untrusted interpreter enforces
- Spam filter: IMAP
APPENDtrains the classifier only on$Junk/$NotJunkor an upload to Junk, like JMAPEmail/import, so migrations no longer flood it with ham. - DKIM2: updated to draft-ietf-dkim-dkim2-spec-09 and draft-ietf-dkim-dkim2-dns-03 (
mail-auth0.16).
Fixed
- OAuth: successful bearer authentication now emits
auth.success. - MySQL: a counter update whose result is exactly zero (such as a queue quota counter that had drifted to -1) no longer fails with "LAST_INSERT_ID() did not return a value", which blocked all incoming mail.
- SPF: unknown modifiers containing
/no longer cause a permerror. - DNS: cached TXT lookups used for one purpose no longer make a domain's DMARC policy, DKIM keys or DKIM2 Domain Policy Record look missing.
- MTA:
- RCPT TO for an empty mailing list no longer fails at DATA with 503.
- Expanding large mailing lists no longer takes quadratic time.
- Stricter validation of ENVID, ORCPT, AUTH during a transaction and repeated EHLO.
- SMTP, IMAP, POP3 and ManageSieve writes time out when the client stops reading.
- The Delivery Test now handles TLS and DANE like real deliveries.
RCPT TO:<Postmaster>without a domain is accepted (RFC 5321 4.5.1).
- IMAP:
- Messages arriving during a command are announced before its tagged reply, so clients no longer skip them.
STATUSnotifications duringIDLEincludeHIGHESTMODSEQ, so Apple Mail syncs changes right away.- A failed
SELECTorEXAMINEcloses the previously selected mailbox, so a followingCLOSEorEXPUNGEno longer affects it (Reported by Hebin Lv (吕贺彬), Beijing University of Posts and Telecommunications). - Limits on FETCH items, SEARCH criteria, sequence sets, flags and header field names per command.
- Concurrent creates and renames of the same mailbox name no longer leave duplicates.
- JMAP:
- Draft saves, copies and imports no longer trigger new-mail pushes.
EmailSubmissionno longer drops recipients on non-public TLDs such as.internal.Email/querytext searches containing symbol-only words no longer return nothing.ContactCard/parsereturns every vCard in a blob.ContactCard/setgenerates auidwhen the client omits it.- Unknown capabilities are answered with
unknownCapability, and WebSocketRequestErrorframes carry therequestId. SieveScript/setactivation reports state changes correctly and uses thesieveIsActiveerror.- Oversized WebSocket messages are refused while reading.
Identity/setandEmailSubmission/setreturnoldState/newStateand honourifInState.- Invalid JSON bodies are answered with
notJSON, and emptycreatedIdsis echoed. - Push subscriptions whose endpoint answers 404 or 410 are destroyed.
- Sieve:
vacation,encloseandnotifystrip CR/LF from header values taken from the message or script.encloseand redirect loops stop at the hop limit.:addrbook:defaultand named address books work in:listtests.redirectcopies to local accounts keep the spam verdict computed at DATA, so spam is filed in the target's Junk.
- Calendar:
- Meeting updates and acceptances refresh the Microsoft busy status.
- Truncating a recurring series to a past end date notifies attendees.
- Destroying an account removes its pending alarms.
- Limits on generated time zone definitions and iMIP parts per message.
CalendarEvent/setrejects non-IANA time zone names instead of storing a floating event.- Invitation and alarm e-mails keep the line breaks of the event description.
- CalDAV follows the default calendar set through JMAP.
- Calendar scheduling:
- New exceptions to recurring events reach attendees who already replied.
- Attendees with
RSVP=FALSEreceive invitations, updates and cancellations.
- Contacts: online services with a user name and no URI are no longer lost.
- DKIM: automatic key rotation keeps the settings of the replaced key.
- ACME: editing the contacts of an existing provider no longer fails with "Invalid email address".
- OAuth:
- The device authorization verification page is reachable in bootstrap and recovery mode.
- In a cluster, access tokens are accepted immediately on all nodes.
- Directories:
- An unavailable directory no longer blocks settings reloads.
- Accounts and groups created from external directories respect tenant quotas.
- Security:
- Auto-ban and rate limits apply per IPv6 /64, and blocked networks added at runtime are enforced without a reload.
- Failed logins tripping only the per-login counter ban just the source address.
- Role managers can no longer grant themselves permissions through parent roles.
- Open IMAP, POP3, ManageSieve, WebSocket and EventSource sessions end when the account's permissions or password change.
- Push delivery reads at most 1 KiB of an endpoint's error response.
- Spam filter: cluster nodes load the updated classifier model after training on another node.
- Cluster: nodes that miss coordinator events reload their state instead of keeping stale settings until a restart.
- HTTP: stalled connections are closed after 60 seconds, POST /jmap buffering is limited, cross-site requests no longer trigger scan bans, and EventSource streams end on token revocation.
- Search index:
- Destroying an account during indexing no longer leaves index entries behind.
- Busy accounts no longer hold an indexing slot indefinitely.
x:IndexQueueStatus/queryaccepts a numericpartition.
- Storage:
- PostgreSQL: requests on idle pooled connections and pool waits are bounded by
responseTimeout. - Elasticsearch: searches return more than 10,000 matches and rejected bulk documents are reported.
- PostgreSQL: requests on idle pooled connections and pool waits are bounded by
- Archiving: restoring items of a deleted account is refused.
- Log viewer: only files written by the log tracer are read.
- Recovery and bootstrap mode: new
STALWART_RECOVERY_MODE_BINDenvironment variable sets the setup listener address, and an invalid bind address stops startup.