VersionDrift
Product

Stalwart Mail Server 1.0.1 → 1.2.3

8 releases · 1 breaking change · 0 security fixes · 4 advisories fixed

0security1breaking0deprecated95feature171fix

Vulnerabilities fixed by this upgrade

  • 7.5 GHSA-7hw7-gq2q-796x Unauthenticated memory exhaustion through inbound DMARC and TLS report analysis
  • 7.5 GHSA-3v65-6jq9-v3hw Unauthenticated memory exhaustion through PDF attachment text extraction
  • 6.3 GHSA-ggp6-9qpj-58hf SMTP command injection through CR/LF in a Sieve redirect address
  • 6.5 GHSA-hf56-fq2g-v9r2 Authenticated memory exhaustion through repeated hrefs in CalDAV/CardDAV multiget reports

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

featureDKIM: configurable RSA key size for generated keys (rsaKeySize: 2048, 3072 or 4096 bits).
featureArchiving: deleted calendar events, contacts, files and Sieve scripts are archived and can be restored, each with its own retention setting.
featureSetup wizard: "Publish MX record and receive mail here" option, so a domain that receives mail elsewhere does not get MX, SPF, DMARC and MTA-STS records for this server.
featureMTA: users can send from sub-addresses of their own addresses ([email protected]) with mustMatchSender enabled.
featureExchange: EWS folder permissions, so Outlook for Mac can view and change folder sharing.
fixJMAP:
fixConcurrent thread merges no longer swap messages between threads or leave some behind.
fixBlob/lookup reports unparseable blob ids in notFound.
fixQuota/query now applies filters, sorting and paging.
fixShareNotification/query handles after dates in the future and sorting by created.
fixThe Blob capability advertises the correct maxDataSources and maxSizeBlobSet limits.
fixDestroying an email in a shared account requires mayRemoveItems on all its mailboxes (Reported by v380).
fixMailbox/set returns the stored name when it trims whitespace.
fixWebSocket sessions answer a Close frame instead of dropping the connection.
fixClassifySpam and TroubleshootDmarc actions return an id, so stalwart-cli no longer fails with created object missing id.
fixThe session's mayCreate* flags are only true where the user has the matching create permission.
fixQuotas are only listed for the capabilities named in using.
fixExchange:
fixEWS calendar items keep AllowNewTimeProposal, IsResponseRequested and their time zones, and get the default 15 minute reminder.
fixMAPI: unsaved changes on one message handle are no longer visible through other handles.
fixMAPI: the Microsoft Remote Connectivity Analyzer Mail Store test no longer fails with ecRpcFormat.
fixMAPI: classic Outlook can accept meeting requests.
fixEWS, ActiveSync and MAPI enforce the create, update and destroy permissions of app passwords, API keys and roles (Reported by v380).
fixAuth:
fixOpen sessions end when their OAuth grant is revoked or their app password or API key expires (Reported by v380).
fixauth.failed events from OIDC, LDAP and SQL directories include the account name.
fixCalendar:
fixhideAttendees is enforced over CalDAV, EWS and MAPI (Reported by v380).
fixConcurrent creates with the same UID no longer store duplicate events or contacts.
fixWebDAV: calendar-multiget and addressbook-multiget return each resource once, so repeating an href can no longer inflate the response (Reported by Dmitry Shirokov).
fixContacts: vCard TYPE values such as INTERNET are preserved, and vCard 3.0 TYPE=PREF converts to pref.
fixMTA:
fixThe failed-RCPT auto-ban counts only the connecting client's own failures (Reported by Dmitry Shirokov).
fixEnvelope addresses that need quoting are relayed quoted, and addresses with control characters are refused.
fixLocally submitted messages with non-ASCII envelope addresses are relayed with SMTPUTF8.
fixOversized DMARC and TLS reports can no longer exhaust memory; reports above maxInboundReportEntries (100,000) are rejected (Reported by Dmitry Shirokov).
fixRegistry: #creation-id references are accepted in blobEncryptionKey, backupEncryptionKey and delegateIds.
fixStorage: RocksDB backups and restores work when the database directory is a volume mount point, as in default Docker and script installs.
fixSearch: crafted PDF attachments can no longer exhaust memory during indexing (Reported by Dmitry Shirokov).
fixArchiving: changing archivedUntil on an archived item no longer schedules a restore.
+9 more items in the release notes
featureStorage:
featureOnline backups of RocksDB and SQLite data stores, on a schedule or as a backup maintenance task, to a directory or to S3-compatible storage (write only), compressed and optionally encrypted with a SymmetricKey, with optional size or full verification (#490).
featureMirrored blob store, which keeps every blob in two blob stores of any type, such as two S3 providers or S3 and a filesystem.
featureSpam filter:
featureQR codes in image attachments, inline images, data: URIs, HTML tables and Unicode block characters are decoded (#1034).
featureTenant admins can list, view and delete the spam training samples of accounts in their own tenant; adding samples for other accounts stays reserved to server administrators.
featureWith trustReplies enabled, an iMIP update, reply or cancellation about an event already in the recipient's calendars is kept out of Junk when it comes from an authenticated sender who is a participant of the stored event.
featureMTA:
featureRelay routes authenticate with OAuth 2.0 (XOAUTH2 or OAUTHBEARER) through the new auth setting.
featureExpressions: % modulo operator, with the same precedence as * and /. (#2914).
featureJMAP:
featureThe maximum size of Identity textSignature and htmlSignature is now configurable with maxSignatureSize in the JMAP settings, and the default goes from 2 KB to 100 KB so signatures with an inline logo fit (#2478).
featureMailing lists can be listed read-only in Principal/get and Principal/query as group principals with their address and description, without members, when the new listMailingLists sharing setting (off by default).
featureBlob downloads honour a single HTTP Range (206 with Content-Range, or 416) and carry a strong ETag checked by If-Range.
featureServer:
featureSIGHUP reloads TLS certificates and settings on the local node, so systemctl reload stalwart, docker kill -s HUP or an ACME client deploy hook can pick up new certificate files without admin credentials or a restart (#352).
featureA warning is printed at startup when STALWART_RECOVERY_ADMIN is set outside recovery mode, as a reminder that this administrator account bypasses two-factor authentication.
featureTelemetry:
featuremessage-ingest.* events carry the JMAP email id (id), so a webhook consumer can fetch a new message with Email/get without an Email/query.
featureStored traces can be searched by account name, which is now indexed with the other trace keywords.
featureThe log viewer (x:Log/query) filters entries by level, by event (an exact event id such as smtp.connection-start, or a family such as smtp) and by time window, and a time window stops reading the log files once it reaches entries older than its start.
featureTLS:
featureListeners can require a client certificate issued by trusted certificate authorities, with optional revocation lists (tlsClientAuth, implicit TLS only) (#2331).
featureSMTP relay routes, PostgreSQL, MySQL and LDAP accept custom TLS settings (tlsSettings): trusted certificate authorities, revocation lists, hostname verification and a client certificate (#277, #2331, #2380).
featureCalDAV:
featureApple's calendar-color and calendar-order properties are now the calendar's JMAP color and sortOrder.
feature{account} in the defaultDisplayName of the Calendar and AddressBook settings is replaced with the account name when the default calendar and address book are created.
featureIMAP: COMPRESS=DEFLATE (RFC 4978) compresses commands and responses for clients that ask for it.
featureExchange: group mailboxes are available over EWS and ActiveSync. Members see a Shared Folders folder with one folder per group, holding its mail, calendars and contacts, in Apple Mail, Calendar and Contacts and on ActiveSync devices.
fixDelivery status notifications keep the message/delivery-status part 7-bit US-ASCII as RFC 3464 requires: non-ASCII diagnostic text, such as a Sieve ereject reason, is sent as an RFC 2047 encoded word
fixOutbound OAUTHBEARER authentication sends the GS2 header and key/value framing required by RFC 7628 instead of the bare token.
fixAn authenticated submission session is closed with 421 4.7.0 at its next MAIL FROM, DATA or BDAT once the account loses access.
fixSub-addressing is applied wherever a local address is looked up, as delivery already did: is_local_address is true for user+tag@ on a local domain.
fixDelivery status notifications, the Sieve reject MDN and local delivery failures report the recipient address the sender used instead of the address it was rewritten to by an alias, masked address, sub-address, catch-all.
fixMasked addresses are delivered only for the exact address that was handed out (or the same local part on an alias of its domain); the same identifier with another prefix or on another hosted domain is now refused as an unknown recipient.
fixSieve:
fixVacation replies and reject MDNs for mail sent to an alias, sub-address, masked address or catch-all of the account now come from that address, without the account's display name and DKIM-signed for its domain.
fixA redirect of an unauthenticated message (neither submitted nor passing DMARC) whose From address belongs to the account's own organizational domain is dropped and the message filed into the Inbox.
fixAccounts without the emailSend permission no longer send mail through Sieve.
fixCalendar:
+71 more items in the release notes
fixMTA: in a cluster, an in-memory store error while locking a queued message now retries within seconds instead of parking the message for ten minutes.
fixIMAP:
fixIDLE no longer sends unsolicited FETCH responses for newly arrived messages, which made Thunderbird and Evolution skip messages announced by EXISTS while another command was running.
fixMailbox names and other strings containing CR or LF are sent as literals, so a shared mailbox name can no longer inject response lines into another user's session.
fixJMAP:
fix/get methods list an id requested more than once only once in list or notFound.
fixMailbox/set refuses two sibling mailboxes with the same name created or renamed in the same request.
fixEmail/set rejects with invalidPatch a keyword or mailbox pointer deeper than one level, and an update that both replaces and patches keywords or mailboxIds.
fixSieve:
fixJMAP reports invalid scripts as invalidSieve, a require of an unsupported extension is refused, invalid header names in tests no longer fail compilation, and imap4flags variable names require variables.
fixredirect keeps an empty envelope sender (MAIL FROM:<>), and reject sends a failure MDN instead of a DSN; ereject still produces a DSN. Mail rules now reject with ereject (protocol-level refusal) instead of reject.
fixCalendar: iMIP invitation and update emails now label UTC and fixed-offset times that have no TZID with their time zone.
fixExchange:
fixMAPI: Outlook in cached mode no longer shows an empty body for messages whose HTML part is larger than 32 KiB; properties over 32 KiB are now included in cached-mode downloads and FastTransfer copies.
fixEWS: folders now return the PR_ENTRYID and PR_ATTR_HIDDEN extended properties when requested, which Apple Mail needs to sync the folder list without crashing.
fixActiveSync: Find reads its search text as KQL, so iOS Mail server searches such as from:"name" OR subject:"name" find messages again.
fixActiveSync: SendMail, SmartReply and SmartForward accept a raw message/rfc822 body at every protocol version, so Outlook for iOS and Android can send mail.
fixActiveSync: refused SendMail, SmartReply and SmartForward requests, and requests refused for their body type or invalid WBXML, are logged as http.error (debug) with the command, the ActiveSync status and the reason.
fixActiveSync: a calendar Add with an empty Recurrence element is stored as a single event instead of failing with status 6, so iOS Calendar can create events again.
fixAuth: password logins on a domain served by an OpenID Connect directory now fail as invalid credentials (535 5.7.8 over SMTP) and count toward the authentication auto-ban.
fixSecurity:
fixx:AppPassword/set and x:ApiKey/set only update or delete credentials of their own type, so an app password or API key can no longer change the account password or remove its TOTP.
fixS/MIME key harvesting limits the nesting of the signed content, so a crafted signed message can no longer crash the server with a stack overflow.
fixMailbox/set requires the share right for pointer patches into shareWith, so a sharee without mayShare can no longer change a mailbox's permissions.
fixStore maintenance: a trace retention longer than the time since 2021-09-22 no longer fails the task with "Invalid id cutoff for global unindex".
fixIn-memory store: when the configured store is not available (for example Stalwart Keep was unreachable at startup), operations now fail with "not configured" and point to the startup log instead of "Operation not supported by store".
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 notes
otherMasked 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.
featureApps registered in Stalwart: add the scopes the app needs to its OAuthClient scopes (only a superuser can allow full), and have the app request them.
otherApps signing in through an external OpenID Connect provider: create the scopes in the provider and assign them to the apps that need them.
otherWebUI: no action needed.
featureBlob storage:
featureBlob encryption at rest. Blobs can be encrypted by the server with symmetric keys (AES-256-GCM or ChaCha20-Poly1305) defined as SymmetricKey objects.
featureZstandard compression for blobs (zstd in compressionAlgorithm).
featureBlobRecode task, which rewrites stored blobs with a chosen compression and encryption.
featureSTALWART_UPDATE_ROLE_PERMISSIONS environment variable. When set to true (or 1), startup adds to each default role every permission introduced after v1.0.0 that a new install would give that role and that the role is missing.
featureOAuth: Stalwart scopes urn:stalwart:oauth:scope:security, urn:stalwart:oauth:scope:settings and urn:stalwart:oauth:scope:full, so clients signing in through Stalwart or an external OpenID Connect provider can manage app passwords, API keys and account settings.
fixJMAP:
fix/copy methods called with the same accountId and fromAccountId return a clear error message.
fixPushSubscription objects created with an empty types list no longer receive StateChange notifications, and EmailPush notifications are delivered regardless of types.
fixIMAP SEARCH accepts up to 32 levels of nested filters, so free-text searches from Apple Mail no longer fail with Too many nested filters.
fixOIDC: Bearer tokens are routed to the OpenID Connect directory whose issuer matches before the domain in their claims is tried, so a claim naming a domain the server does not host no longer sends the token to the default directory.
fixSecurity: Editing a default role, or a role nested in one, now invalidates the cached access tokens of accounts and groups that use the default role sets.
featureEncryption:
featureOpenPGP (RFC 9580): v4 and v6 keys; RSA (2048 to 8192 bits), ECDH on NIST P-256, P-384 and P-521, legacy Curve25519, X25519 and X448 encryption keys; SEIPD v1 and SEIPD v2 with AES-OCB or AES-GCM, selected from the key's features and preferences.
featurePost-quantum OpenPGP (RFC 9980): ML-KEM-768+X25519 and ML-KEM-1024+X448 keys, with AES-256.
featureS/MIME (RFC 8551): RSA with PKCS #1 v1.5 or RSA-OAEP, ECDH on NIST P-256, P-384 and P-521, X25519 and X448 (RFC 8418) and post-quantum ML-KEM-512, ML-KEM-768 and ML-KEM-1024 (RFC 9936) certificates; CMS EnvelopedData with AES-256-CBC and AuthEnvelopedData with AES-256-GCM (RFC 5083).
featureHeader protection (RFC 9788) for encrypted messages, including Subject hiding and legacy display for messages sent through the gateway.
featurePublic keys: per-key authenticatedEncryption (AES-GCM with RSA-OAEP) and strictKeyWrapEncoding (RFC 5753 encoding instead of the Outlook-compatible one) switches, and server-computed keyType, fingerprints, capabilities and warnings (expiring soon, weak RSA, address mismatch, post-quantum only, no…
featureEncryption gateway: encrypts outgoing messages for remote recipients with their OpenPGP keys or S/MIME certificates, with a per-recipient gatewayOutbound policy (disable, opportunistic or required), a minimum key trust level, a separate encrypted copy per recipient with its own DKIM and DKIM2…
featureExternal public keys: superuser-managed keys of remote recipients, entered manually or kept up to date from Web Key Directory (WKD), keys.openpgp.org (VKS), HKP keyservers or DNSSEC-validated OPENPGPKEY (RFC 7929) and SMIMEA (RFC 8162) records, with trust levels, pinning, approval of key changes,…
featureKey harvesting: S/MIME certificates (with their advertised capabilities) and Autocrypt keys are learned from DMARC-authenticated incoming mail, controlled by the harvestKeys expression.
featureS/MIME certificate trust: bundled Mozilla email root certificates, custom trust anchors (SmimeTrustAnchor), intermediate certificate retrieval through Authority Information Access and daily certificate revocation list checks.
featureNew encryption.* telemetry events and metrics, including the encryption.key-lookup-time histogram.
featureDKIM2:
featureDSNs are signed with a domain that matches a recipient in the rt= of the reported message, as required by spec-08 section 16.2. When no hosted domain matches, the DSN is signed with DKIM only.
featureDSNs about forwarded messages are propagated to the previous hop in the DKIM2 chain, with the forwarding destination removed and the returned headers restored to how the message arrived (spec-08 section 16.3). This applies to inbound DKIM2 DSNs and to DSNs generated for messages Stalwart…
featureNew dkim2.dsn-not-aligned and dkim2.dsn-propagated telemetry events.
featureOAuth: Application objects have an oauthScopes list of extra scopes that the WebUI requests at sign-in, for external identity providers that release a claim only with a scope of its own.
featureOIDC directories: superuser-only trustedProvider setting lets a tenant-owned directory reach an identity provider on a private network.
fixDKIM: Relaxed body canonicalization ignores whitespace-only lines at the end of the body (RFC 6376, section 3.4.4), which produced a bh= that other implementations rejected.
fixiTIP: A full REQUEST with an older SEQUENCE no longer removes a newer override from the attendee's copy (RFC 5546, section 2.1.5).
fixApplications: A cached application bundle that failed the manifest check (such as the WebUI 1.x bundle left by v0.16 in a shared blob store) was never replaced, so /admin and /account returned 404; it is now downloaded again.
fixHTTP: Error responses sent before the request body is read (such as a 401) include Connection: close, instead of the connection being closed without notice.
fixHTTP: A response with an invalid header value, such as a JMAP download whose accept parameter contains a line break, returns 500 instead of aborting the connection.
fixIMAP
fixRENAME refuses to move a mailbox into its own subtree (such as A to A/B/C) with NO [CANNOT], instead of creating a parent loop.
fixSingle-level mailbox names are checked against maxMailboxNameLength, which only applied to names containing /.
fixClient quirks are detected from the ID command, and UIDONLY is not enabled for Microsoft's sync service (Microsoft Office 365), which left the new Outlook without folders or mail.
fixMailboxes: IMAP, JMAP and Sieve fileinto accept names of up to maxMailboxNameLength octets (RFC 8621, section 1.6.1); JMAP Mailbox/set rejected names of exactly that length.
fixJMAP
fixMessages added with IMAP APPEND/MULTIAPPEND or Email/import send an EmailPush with their id, so push subscribers no longer get an empty notification.
fixEmail/queryChanges with collapseThreads reports the previous representative of a thread as removed when a newer email joins the thread, and adds it back when that email is destroyed.
fixEmail/set places inline attachments that have a cid (image, audio or video, disposition not attachment) in multipart/related with the HTML body instead of multipart/mixed, so clients display them in the message body and Email/get returns them in attachments.
fixEmail/get, Email/set, Email/copy and SearchSnippet/get return notFound for an Email id destroyed by a thread merge instead of resolving it with the stale threadId.
fixThe upload endpoint rejects uploads to accounts the caller is not a member of and to account ids that do not exist, as Blob/upload already did.
fixOAuth: Scope values the server does not know, such as the OpenID Connect email and profile scopes, are ignored at the authorization endpoint instead of failing with invalid_scope (OpenID Connect Core, section 3.1.2.1).
fixOAuth: App passwords and API keys are refused at interactive sign-in (WebUI login and device code approval), which issued a session with the account's full permissions and skipped two-factor authentication.
fixMilter
fixSMFIC_BODY carries only the message body instead of the whole message, so milters no longer receive the headers twice.
fixHeader names and values that are not valid UTF-8 are sent to the milter as raw bytes instead of empty strings.
fixSearch indexing
fixAn email whose blob is missing is logged and skipped instead of failing its whole index partition and being retried forever.
+8 more items in the release notes
See how far your stack has drifted from upstream. Release data from vendors’ own sources · feed under CC BY 4.0 · Code under AGPL-3.0 Settings Feed status