Configuring Dovecot Sieve for Server‑Side Email Filtering
Learn how to enable Dovecot’s Sieve plugin, write a simple filter script, and verify its execution while avoiding common pitfalls.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to enable Dovecot’s Sieve plugin, write a simple filter script, and verify its execution while avoiding common pitfalls.
Learn how to enable Dovecot’s Sieve filtering, write server‑side rules, and manage them via IMAP. A step‑by‑step example shows auto‑archiving newsletters and sending vacation replies, plus trade‑offs and best‑practice tips.
Context Since Dovecot 2.3 the mailbox_list_index feature is enabled by default, maintaining a per-user index ( dovecot.list.index plus .log ) that accelerates LIST and LSUB commands. The index is updated under an exclusive fcntl / flock lock for every mailbox write operation (EXPUNGE, MOVE, COPY, etc.). Constraint The design chooses strict consistency over t
In a typical Dovecot installation, the IMAPS service listens on all available network interfaces (0.0.0.0:993 and [::]:993) unless explicitly restricted. When a server possesses multiple interfaces—such as a public NIC for web traffic and a private NIC for internal services—administrators risk exposing the IMAPS port to the Internet if the listener is not bo
Background Dovecot parses the RFC‑5322 Date: header of each message and stores the resulting timestamp internally in UTC. The original header is preserved unchanged. When a client issues an IMAP SEARCH SINCE/BEFORE/ON command, the server interprets the date arguments relative to its configured local time zone. This can lead to off‑by‑one‑day results for clie
Dovecot mailbox list index cache invalidation on mailbox create, rename, or delete The goal is to keep IMAP LIST responses consistent immediately after a mailbox is created, renamed, or removed, without waiting for the mailbox list index TTL to expire or reloading the server. Dovecot accelerates mailbox listings using a cached index. The cache lifetime appea
Concurrency Management and OS Interoperability Dovecot employs a multi-process architecture where a master process manages worker processes to handle IMAP connections. In environments with high connection bursts, latency may emerge at the boundary between the Dovecot listener and the operating system's TCP stack. When the volume of concurrent requests exceed
Corrupted index cache file error in dovecot.index.cache Dovecot stores per-mailbox index files including dovecot.index.cache to accelerate IMAP operations. The cache is expendable and rebuilt from message data on demand. A documented failure condition is logged when the index/mail-cache code detects inconsistent records in the cache file. Corruption is commo
I'm evaluating whether to enable lazy_expunge = yes on a Dovecot 2.3.x server that hosts busy mailboxes in mdbox format. The documented behavior is clear in principle: expunged messages stay in storage and in the index until a later expunge pass, which avoids immediate disk I/O on the hot path. What I cannot pin down is the practical timing. If deleted messa