Stalwart v1.0: The Fastest Mail Server on the Planet
Stalwart v1.0 is the first stable release of the mail and collaboration server, five years after the first commit landed in the mail-parser repository on 3 October 2021. The server, written in Rust, provides JMAP[1], IMAP, POP3, SMTP, CalDAV, CardDAV and WebDAV, a spam filter, clustering and support for half a dozen storage backends. Version 1.0 pursued two goals: performance, proven with numbers, and stability of the data itself — the database schema is now finalised, so upgrading means installing a new version without the disruptive migrations earlier releases required. New features include full-text search inside PDF and office documents.
The release contains close to 200 commits touching more than 1,300 files, most of them performance work. Parsers were rewritten with SIMD[2] and SWAR[3]: the from-scratch rewrite mail-parser 1.0 is 3 times faster than the Rust mailparse crate and 9 times faster than Dovecot's parser on a full parse, while the new encodify library decodes a MIME-wrapped Base64 attachment 22 times faster than the standard Rust base64 crate on an AMD EPYC server. Database round trips were cut by assigning identifiers inside the same write transaction that uses them, running read-modify-write updates as merge operations, and compressing stored objects with zstd using dictionaries trained on e-mail, calendar and contact data; RocksDB, PostgreSQL, MySQL, FoundationDB and SQLite were each tuned individually.
A rewritten full-text search engine stores postings in blocks of 65,536 documents and keeps word positions, making real phrase searches possible; on a mailbox of 250,000 messages, a full-text search of every message body returns in under 4 milliseconds. The release was tested in a lab on Microsoft Azure across more than 30 regions, with up to 18 test labs running in parallel and several hundred vCPUs, covering 35 kinds of test in more than 550 test cells: 1.6 million messages and 750,000 calendar and contact items across 500 accounts, mailboxes of up to 5 million messages, 20,000 new connections per second, and floods of a million DMARC[4] and TLS reports.
Read the original stalw.artDiscussion
Discussion
Commenters report using Stalwart for self-hosting e-mail on small servers and recommend it. One welcomes that it runs on Windows Server, while another asks whether independent code audits and network penetration tests have been performed.
Sources
-
stalw.art
Stalwart v1.0: The Fastest Mail Server on the Planet
-
KRGeekNews KO
Stalwart v1.0: 지구상에서 가장 빠른 메일 서버



