SIEVEC(1)
π SIEVEC(1) π β the manual page for sievec, aka Pigeonhole's Sieve script compiler
ok so hi bestie π«Ά you're reading the manual page for sievec, section 1, and it lives in the Dovecot family. Buckle up, it's actually so much less scary than it looks.
β¨ NAME β¨
sievec β Pigeonhole's Sieve script compiler π
πΈ SYNOPSIS πΈ
sievec [options] script-file [out-file]
π¦ DESCRIPTION π¦
The sievec command is part of Pigeonhole (pigeonhole(7)), which is the thing that adds Sieve (RFC 5228) and ManageSieve (RFC 5804) support to Dovecot (dovecot(1)). iconic behavior honestly.
Using the sievec command, Sieve scripts can be compiled into a binary representation. That resulting binary can be used directly to process e-mail messages during the delivery process. The delivery of mail messages β and, by means of the LDA Sieve plugin, also the execution of Sieve scripts β is performed by Dovecot's local delivery agent (LDA) called dovecot-lda(1). π
Usually, it is not necessary to compile the Sieve script manually using sievec, because dovecot-lda(1) will do this automatically if the binary is missing. However, in some cases dovecot-lda(1) does not have permission to write the compiled binary to disk, forcing it to recompile the script every single time it is executed. Using the sievec tool, this can be performed manually by an authorized user to increase performance. literally a glow-up for your mail server β¨
The Pigeonhole Sieve implementation recognizes files with a .sieve extension as Sieve scripts and corresponding files with a .svbin extension as the associated compiled binary. This means, for example, that Dovecot's LDA process will first look for a binary file "dovecot.svbin" when it needs to execute "dovecot.sieve". It will compile a new binary when it is missing or outdated. no cap π
The sievec command is also useful to verify Sieve scripts before using. Additionally, with the -d option it can output a textual (and thus human-readable) dump of the generated Sieve code to the specified file. The output is then identical to what the sieve-dump(1) command produces for a stored binary file. This output is mainly useful to find bugs in the compiler that yield corrupt binaries. ππ
π OPTIONS π
-cconfig-file β Alternative Dovecot configuration file path.-dβ Don't write the binary to out-file, but write a textual dump of the binary instead. In this context, the out-file value'-'has special meaning: it causes the textual dump to be written to stdout. The out-file argument may also be omitted, which has the same effect as'-'. The output is identical to what thesieve-dump(1)command produces for a compiled Sieve binary file.
heads up bestie π this option is not allowed when the out-file argument is a directory.
-Dβ Enable Sieve debugging. π main character energy, honestly.-osetting=value β Overrides the configuration setting from/etc/dovecot/dovecot.confand from the userdb with the given value. In order to override multiple settings, the-ooption may be specified multiple times.-uuser/mask β Run the command only for the given user. It's also possible to use'*'and'?'wildcards (e.g.-u *@example.org).-xauth_info β auth_info specifies additional conditions for the user command. The auth_info option string has to be given asname=valuepair. For multiple conditions the-xoption could be supplied multiple times.
Possible names for the auth_info are:
serviceβ The service for which the userdb lookup should be tested. The value may be the name of a service, commonly used with Dovecot. For example:imap,pop3orsmtp.sessionβ Session identifier.lipβ The local IP address (server) for the test.ripβ The remote IP address (client) for the test.lportβ The local port, e.g.143rportβ The remote port, e.g.24567real_lipβ The local IP to which the client connected on this host.real_ripβ The remote IP where client connected from to this host.real_lportβ The local port to which client connected to to this host.real_rportβ The remote port from where the client connected from to this host.forward_<field>β Field to forward as%{forward:field}to auth process.
π₯ ARGUMENTS π₯
script-fileβ Specifies the script to be compiled. If the script-file argument is a directory, all files in that directory with a.sieveextension are compiled into a corresponding.svbinbinary file. The compilation is not halted upon errors; it attempts to compile as many scripts in the directory as possible.
not me warning you again π the -d option and the out-file argument are not allowed when the script-file argument is a directory.
out-fileβ Specifies where the (binary) output is to be written. This argument is optional. If this argument is omitted, a binary compiled from<scriptname>.sieveis saved as<scriptname>.svbin. If this argument is omitted and-bis specified, the binary dump is output to stdout.
π EXIT STATUS π
sievec will exit with one of the following values:
0β Compile was successful. (EX_OK,EXIT_SUCCESS) π ate and left no crumbs.1β Operation failed. This is returned for almost all failures. (EXIT_FAILURE)64β Invalid parameter given. (EX_USAGE)67β User does not exist.68β Input file, address or other resource does not exist.73β Cannot create output file.77β Permission error.78β Configuration error.127β Unknown error. π
π FILES π
/etc/dovecot/dovecot.confβ Dovecot's main configuration file./etc/dovecot/conf.d/90-sieve.confβ Sieve interpreter settings (included from Dovecot's main configuration file)
π REPORTING BUGS π
Found a bug? Report bugs, including doveconf -n output, to the Dovecot Mailing List β¨dovecot@dovecot.orgβ©. Information about reporting bugs is available at: β¨https://dovecot.org/bugreport.htmlβ©
don't be shy bestie, they wanna hear from you π«Ά
π SEE ALSO π
dovecot(1), dovecot-lda(1), sieve-dump(1), sieve-filter(1), sieve-test(1), pigeonhole(7)
ok that's the whole page, you're officially a sievec girlie now π this edition was version f00471c, dated August 2026 β and it was published by Dovecot, from the Dovecot manual set. slay, go compile something β¨π§ββοΈ
π¦ where this page comes from
- alpine 3.23: dovecot-doc 2.4.5-r0 Β· MIT AND LGPL-2.1-or-later
- alpine 3.24: dovecot-doc 2.4.5-r0 Β· MIT AND LGPL-2.1-or-later
- arch rolling: pigeonhole 2.4.5-1 Β· LGPL-2.1-only
- fedora 43: dovecot-pigeonhole 1:2.4.5-1.fc43 Β· MIT AND LGPL-2.1-only
- fedora 44: dovecot-pigeonhole 1:2.4.5-1.fc44 Β· MIT AND LGPL-2.1-only
- nixos 26.05: dovecot-pigeonhole 2.4.5
- nixpkgs unstable: dovecot-pigeonhole 2.4.5
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: dovecot24 2.4.5-160000.1.1 Β· BSD-3-Clause AND LGPL-2.1-or-later AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms