Stalwart Mail Server 1.0.3 → 1.2.0
3 releases · 1 breaking change · 0 security fixes · 0 advisories fixed
0security1breaking0deprecated37feature70fix
Breaking changes
- breaking FoundationDB: the separate stalwart-foundationdb build, its Docker image and the install.sh --fdb option are removed; the standard stalwart binary connects to FoundationDB. in 1.2.0
Security changes
None in the release notes.
Every release in between
featureAdd 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: Add these permissions manually using the recovery administrator or restart the server once with the…
featureMicrosoft Exchange protocols for Outlook, Apple Mail, Calendar and Contacts, and ActiveSync devices (disabled by default):
featureExchange 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).
featureMAPI 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.
featureExchange 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.
featureAutodiscover (POX, SOAP and JSON v2) for EWS, MAPI over HTTP and ActiveSync.
featureNew x:Exchange object (enable, ewsVersion, maxRequestSize, maxDevices, maxHeartbeat, maxObjectSize; permissions sysExchangeGet and sysExchangeUpdate) and a new exchange cache size setting.
featureExchange 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:MailRule rules.
featureBasic and OAuth authentication; NTLM and Kerberos are not supported.
featureNew exchange Cargo feature (enabled by default) to build without the Exchange protocols.
featureRFC 8098 - Message Disposition Notification
featureRFC 9007 - Handling MDN with JMAP: MDN/send and MDN/parse methods, capability urn:ietf:params:jmap:mdn.
featurePer-account working hours in the new x:CalendarSettings object (permissions sysCalendarSettings*).
featureManaged in the WebUI, over JMAP or through the CalDAV calendar-availability property (RFC 7953), which generates and accepts VAVAILABILITY.
featureTime outside working hours appears as BUSY-UNAVAILABLE in iTIP free/busy and as unavailable periods in JMAP Principal/getAvailability.
featureNew shareFreeBusy calendar 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.
featureResource accounts for rooms and equipment:
featureCapacity and location
featureDelegates who manage the resource's calendar
featureAutomatic or manual booking of invitations
featureServer-side rules in the new x:MailRule object (permissions sysMailRule*), compiled together with the vacation response into one read-only Sieve script named managed.
featureConditions: 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,…
featureActions: 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.
featureJunk e-mail lists: blocked senders, safe senders and safe recipients, plus delegation of meeting requests.
featureFoundationDB Rust native client:
featureNative asynchronous Rust client replaces libfdb_c.
featureSupports FoundationDB 7.1 to 8.0 and TLS, needs no client library installed on the host. Included in the standard build and Docker image.
featureCompared with the previous libfdb_c client: 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.
featureThe libfdb_c backend remains available with the foundationdb-c feature.
breakingFoundationDB: the separate stalwart-foundationdb build, its Docker image and the install.sh --fdb option are removed; the standard stalwart binary connects to FoundationDB.
fixOAuth: successful bearer authentication now emits auth.success.
fixMySQL: 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.
fixSPF: unknown modifiers containing / no longer cause a permerror.
fixDNS: cached TXT lookups used for one purpose no longer make a domain's DMARC policy, DKIM keys or DKIM2 Domain Policy Record look missing.
fixMTA:
fixRCPT TO for an empty mailing list no longer fails at DATA with 503.
fixExpanding large mailing lists no longer takes quadratic time.
fixStricter validation of ENVID, ORCPT, AUTH during a transaction and repeated EHLO.
fixSMTP, IMAP, POP3 and ManageSieve writes time out when the client stops reading.
fixThe Delivery Test now handles TLS and DANE like real deliveries.
+71 more items in the release notesotherMasked email addresses are now part of the open source edition and no longer require an Enterprise license.
featureDNS: the Netcup provider now uses netcup's key-only REST API, which manages CloudDNS domains only; existing Netcup entries need the CloudDNS API key in the new apiKey field after upgrading.
fixMTA:
fixA queued message is now visible to and managed by only the sender's tenant (or, for mail from outside, the recipients' tenant when all of them belong to one tenant), instead of by every tenant with a recipient of the message.
fixMasked addresses are now accepted on domains with a custom sub-addressing rule; they were refused with "Mailbox does not exist".
fixMilter: a milter that accepts a message before end-of-body no longer gets the rest of it, which libmilter ignores, so the session no longer waits for milter.timeout; a milter that sets SMFIP_NOBODY now receives end-of-body.
fixJMAP:
fixOn a new account, Mailbox/changes from the state of the first Mailbox/get no longer lists the system mailboxes as created.
fixPrincipal/query text and name filters now match a full address and whole words of the name and description; name was an exact address match and text never matched an address.
fixThe ClassifySpam and TroubleshootDmarc actions accept mailFrom: null for the null reverse-path (MAIL FROM:<>), and the ClassifySpam mailFromParameters value bit8Mime is spelled correctly and no longer swapped with binaryMime.
fixIMAP:
fixEvery token of a request, including empty quoted strings, now counts toward the request size limit at its in-memory size; floods of "" before login or of ( after it could exhaust server memory.
fixFETCH, SEARCH, STORE, THREAD, UIDBATCHES, COPY and MOVE now send EXISTS for messages delivered since the last update before their responses refer to them (RFC 9051 §5.2); clients could record the new UID without the message and skip it for good.
fixEmail:
fixAn incoming or appended message is no longer dropped as a duplicate when the only stored message with the same Message-ID in the target mailbox is a draft.
fixSieve:
fixenvelope "to" now holds the address from RCPT TO, including its +detail, when sub-addressing rewrote the recipient, so envelope :detail "to" matches (RFC 5228 §5.4, RFC 5233). This also applies to messages a script redirects to a sub-address, which previously could loop.
fixA redirect, vacation reply or notification that cannot be queued is now logged as sieve.unexpected-error with its recipients; it was dropped without a trace.
fixStorage:
fixS3: requests that fail with a transport error, such as a timeout, are now retried up to maxRetries; writes were never retried and reads only once.
fixEncryption at rest:
fixS/MIME-encrypted messages now use Content-Disposition: inline for the smime.p7m part, so iOS Mail shows the decrypted text as the message preview.
fixCalendar:
fixAn iTIP REPLY no longer overwrites the organizer's RSVP request for the replying attendee, and a reply carrying RSVP=FALSE no longer stops later updates such as a cancellation from reaching that attendee.
fixA meeting invitation forwarded by a local attendee from an authenticated session is now added to the recipient's calendar as an uninvited copy (recipient added as NEEDS-ACTION, organizer unchanged, no reply sent) instead of being rejected; forwards from outside or unauthenticated senders are still…
fixA recurring event whose DTSTART does not match its RRULE now has DTSTART as its first instance, counted toward COUNT, instead of starting at the first date the rule generates.
fixAn event with more than one RRULE now uses the first one everywhere (expansion, JMAP recurrenceRule and invitations) and keeps the others unchanged; previously expansion used the last one and JMAP dropped the first.
fixA JMAP event location whose description, locationTypes or links are null is now exported as a plain LOCATION instead of a VLOCATION without one, so invitations show the location again.
fixJMAP-written events no longer get a TZID on a DATE value or a VALUE=DATE on a timed start: all-day events with a stray TZID stay all-day without it, and a date start with a timed duration is written as a date-time.
fixWebDAV:
fixFiles downloaded from /dav/file/ are served with X-Content-Type-Options: nosniff and a sandboxing Content-Security-Policy, so an uploaded HTML file can no longer run scripts on the server's origin when another user opens it.
fixConcurrent PUT requests that create the same new file, contact or event no longer all succeed: one creates it and the others get 412 Precondition Failed with If-None-Match: *, or overwrite it without that header.
fixAuthorization:
fixChanging a tenant's permissions or roles now applies at once to the tenant's accounts, including logins with a cached session on every cluster node; previously it took effect only after InvalidateCaches or a change to the account itself.
fixTelemetry:
fixThe log viewer shows the details of entries written by a log tracer with multiline enabled and searches them, instead of showing an empty details column.
fixMetrics history now starts within 5 minutes when an Enterprise license is activated or restored without a restart; previously the dashboard history stayed empty until the server restarted.
featurePasskeys (WebAuthn) for accounts in the internal directory:
featurePasswordless sign-in on the built-in login page, for the authorization code and device flows, with a "Sign in with a passkey" button and browser autofill. Passkeys are not a second factor: signing in with a passkey does not ask for the TOTP code.
featurePasskey objects (x:Passkey) to register, list, rename and delete passkeys, with the new x:Passkey/registrationOptions method. Registering a passkey requires the current password, and the TOTP code when one is set. Passkeys are listed in the WebUI under Account > Credentials.
featureES256, Ed25519 and RS256 keys, with attestation none or self-attested packed.
featuremaxPasskeys limit per account (default 10) in the Authentication settings, and as a per-account quota.
featureThe relying party ID is the host of the public URL, so the WebUI must run on that host or one of its subdomains.
featureStalwart Keep as an in-memory store, lookup store, cluster coordinator and cache swap store (keep feature).
fixMTA:
fixThe reply after the message data is now read with dataTimeout instead of rcptToTimeout.
fixShutdown now drains outbound deliveries in progress (up to 8 seconds) and releases their queue locks, so a restart no longer causes duplicate deliveries or a 10 minute delay in clusters.
fixA queue update that fails after a successful delivery (for example during a database failover) is now retried while the queue lock is held, instead of the message being delivered again.
fixIn clusters, a node that takes over a queued message now reads it at the latest committed version (FoundationDB) or from the primary (SQL read replicas), so a message another node has just delivered is not delivered again and its queue quota is not released twice.
fixMilter header edits follow libmilter: SMFIR_ADDHEADER appends, SMFIR_INSHEADER inserts at its position in the whole header list, folded values are written with CRLF, and values that are not UTF-8 are accepted (also MTA hook header edits).
fixJMAP:
fixPushSubscription/get now returns the verificationCode of verified subscriptions instead of always returning null.
fixFileNode/set rejects a Directory role that another Directory in the account already has (draft-ietf-jmap-filenode-20), and FileNode/copy no longer copies role.
fixEmail/set body parts with a raw header:Content-Type (or Content-Disposition) no longer get a second, generated header field; giving the same header field both raw and through a body part property (type, disposition, cid, ...) is rejected with invalidProperties.
fixCalendar: an RSVP (JMAP or CalDAV) on an invitation that was stored without scheduling now sends the iTIP REPLY to the organizer.
fixDKIM: a signature whose DNS record cannot be built (such as a DKIM2 ML-DSA-44 key created before v1.0.2) no longer stops publishing, rotation and deletion of the domain's other DKIM signatures.
fixACME: Domain subjectAlternativeNames are validated on save; a name containing a dot that is outside the domain and its aliases and has no public suffix (such as webmail.test) is rejected instead of failing every renewal.
fixStorage:
fixMySQL/MariaDB: connections no longer switch to the local Unix socket reported by the server (@@socket), which could reach a different local server than the configured host.
fixSQLite: a path that is a directory now stores the database there as stalwart.db (the setup wizard carried the RocksDB directory over), and the field is described as a database file.
fixPostgreSQL: the wait for server replies is bounded by the new responseTimeout setting (default 2m) and the login handshake by connectTimeout; /healthz/ready returns 503 while the data store is not answering.
fixBootstrap: New installations set up with an external directory (LDAP, SQL, OIDC) now get the default roles, so directory users can log in.
fixCluster: Notifications over Redis/Valkey: subscribing is bounded by connectTimeout and idle subscriptions are pinged every 15 seconds, so a dead or unresponsive server is detected and the subscription is re-established.
fixNetwork: Listeners on a wildcard address (0.0.0.0 or ::) now start when the kernel binds them to a specific address, such as in FreeBSD jails without VNET.
fixEnterprise:
fixAfter a lapsed license is renewed, the metrics and tracing stores and the data store read replicas are restored without a restart.
fixQueued messages and their contents are now scoped to the tenant that owns them.
fixACME renewal rejects certificates naming identifiers that were not ordered, and tenant domains can only request certificate names within the domain or its aliases (an existing tenant domain with other names stops renewing until they are removed).
fixSuccessful Enterprise license renewals are now logged, with the new key's account limit and validity period.