What changed
On November 4, 2026, Stalwart released 1.0.3 after its November 2 1.0.2 post-quantum encryption gateway release. The new patch adds symmetric blob encryption at rest (AES-256-GCM or ChaCha20-Poly1305), Zstandard compression and a BlobRecode task; these are distinct from the per-account email encryption setting. It adds OAuth scopes security, settings and full for third-party clients to manage app passwords, API keys and account settings, while the WebUI needs no scope change. Existing default roles may lack permissions introduced since 1.0.0: administrators can restart once with STALWART_UPDATE_ROLE_PERMISSIONS=true to add default-role permissions, then remove the variable. It also invalidates cached access tokens when default roles or nested roles are edited, and addresses OIDC issuer routing plus JMAP/IMAP edge cases. Importantly, 1.0.3 does not undo the 1.0.2 upgrade warning: accounts that previously used per-account mail encryption at rest are reset to Disabled after upgrade and must explicitly reselect their keys or newly delivered mail is stored unencrypted. Pre-existing encrypted mail and keys remain untouched.
Why it matters
Stalwart operators now have an official repair path for inherited default-role permissions and new controls for encrypted/compressed blob storage, but those do not replace mail-at-rest settings. A safe upgrade still requires checking old and new encryption policy independently, re-enabling per-account mail encryption, and testing whether OAuth-connected apps can manage credentials after their scopes change. Auto-adding permissions to default roles should be audited before running in a customized deployment. Release notes establish behaviour and fixes, not confirmed exploitation.
OAuth scope and login compatibility changes
Third-party clients need urn:stalwart:oauth:scope:security, urn:stalwart:oauth:scope:settings or urn:stalwart:oauth:scope:full, configured and requested appropriately, to manage security and account settings. Only a superuser can grant full to a registered app. For external OIDC providers, create and assign required scopes at the identity provider. The built-in WebUI needs no action. The release also fixes issuer-based selection for incoming bearer tokens.
1.0.3: blob encryption and permission repair
The November 4 release adds server-encrypted blobs using configurable symmetric keys, zstd compression and BlobRecode for existing blobs. It also offers STALWART_UPDATE_ROLE_PERMISSIONS=true for one restart to add new permissions missing from upgraded default roles. Remove the environment variable afterwards, confirm administrator roles and re-check any intentional permission restrictions. A change to a default or nested role now invalidates cached access tokens.
1.0.2: outbound encryption and post-quantum keys
The November 2 release adds outgoing-mail encryption using recipient public keys plus key discovery, management and verification. The new OpenPGP and S/MIME engine adds classical and post-quantum key algorithms and optional header protection. Support for an algorithm is not proof that a recipient's existing mail client implements it, so operators should test actual clients and keys.
Important upgrade step: at-rest encryption resets
An account that had encryption at rest enabled before upgrading is explicitly reset to Disabled. New incoming messages remain unencrypted until its user or administrator reselects a registered public key and enables encryption. Existing encrypted messages and registered keys are unchanged. The global Encryption.atRestEnable switch is on by default; admins who had disabled the previous server-wide switch must disable the new one as required. Verify settings account by account and send a test mail.
Default-role upgrade permissions have a 1.0.3 repair path
Upgraded servers can lack permissions added after 1.0.0 because role defaults are only created on first install. From 1.0.3, administrators can restart once with STALWART_UPDATE_ROLE_PERMISSIONS=true to fill missing permissions in each default role, then remove the variable. Review assigned permissions and any custom policy before and after restart; this does not re-enable per-account email encryption.
1.0.1 closes two security boundaries
The upstream 1.0.1 release fixes creation of config.json with a process umask that could produce 0644 permissions and leave datastore credentials readable by other local accounts. It also removes tenant-member access to the impersonate permission after tenant administrators with that permission could reach accounts belonging to other tenants. These are local filesystem and tenant-role conditions respectively; no verified exploitation was found. Operators should upgrade and audit existing config.json permissions and tenant roles; the release notes do not establish that already-created files are automatically corrected.
Telemetry names and OAuth behaviour change
New OpenTelemetry HTTP/gRPC and Prometheus exporters replace earlier crates. OTLP metrics use stalwart.* and Prometheus uses stalwart_* with unit and _total conventions; old dashboards, scrape parsing and alerts need migration. ServiceName, serviceNamespace and resourceAttributes replace earlier OTEL_* environment configuration. OAuth consent is now shown after sign-in and skipped for previously authorised connected applications unless prompt=consent is supplied; all cluster nodes must be upgraded before depending on the changed sign-in flow.
JMAP draft encryption and storage expectations
The 1.0.1 changelog explicitly says JMAP messages with the $draft keyword are no longer encrypted on append and the JMAP Sent copy is stored unencrypted. This changes storage-at-rest expectations for affected workflows. The release notes do not establish broader exposure or a new vulnerability, and operators should confirm how their application uses drafts, sent copies and external encryption before making claims about end-to-end confidentiality.
Migration can strand the WebUI despite a correct URL
Two related community reports describe 0.16.27-to-1.0.x migrations that reuse a blob store: the Application resourceUrl points to the v2 WebUI, but an older cached v1 bundle remains under the same application ID, producing 404 responses on /admin and /account. A reported workaround is to trigger Action/UpdateApps after migration to refresh the bundle. The report was reproduced by community users and still observed with server 1.0.1 and stalwart-migrate 1.0.3; maintainer confirmation of a permanent fix was not established at research time. A separate failure occurs when resourceUrl itself remains the old 'latest' URL.
Stable storage is the practical milestone
The 1.0 database schema is intentionally finalised so later releases can upgrade in place rather than repeating disruptive migrations. This release itself is a breaking storage transition: the new server will not open an old store. The official migration tool reads the old store, copies data to a new one, supports incremental reruns and preserves IMAP UIDs and change history. The final cutover still needs planning; OAuth users must sign in again and search indexes rebuild.
How existing installations move
For v0.16 installations, update to 0.16.27, back up and test, then use stalwart-migrate with a new empty v1.0 store. For v0.15 or earlier and gradual moves, the documented migration proxy and Vandelay can route accounts between old and new servers. Clusters must now use a Redis-family in-memory coordinator; single-node installations can use a built-in local store. Configuration keys were also renamed or restructured.
Performance and search changes are substantial but vendor-measured
The maintainers rewrote mail-parser using SIMD/SWAR, tuned RocksDB, PostgreSQL, MySQL, FoundationDB and SQLite backends, and redesigned mailbox caches. A new full-text index supports phrase searches and text extraction from PDF, Office, OpenDocument, EPUB and RTF attachments. On matched Azure servers, Stalwart says it won 35 of 38 head-to-head Postfix/Dovecot tests. Benchmark scripts and raw data are published, but independent reproduction and comparisons across different production configurations are still needed.
Other 1.0.1 fixes and release boundaries
The patch also addresses an aarch64 RocksDB concurrency SIGSEGV, ACME DNS-01 zone selection, JMAP response compliance and an email spam-filter false positive involving trailing dots in reverse-DNS names. The earlier 1.0 milestone remains a new stable on-disk schema requiring one-time migration; the maintainer's 35/38 benchmark wins remain vendor-run rather than independently established.