Search K
Appearance
Appearance
sievec [options] script-file [out-file]
The sievec command is part of Pigeonhole (pigeonhole(7)
), which adds Sieve (RFC 5228) and ManageSieve (RFC 5804) support to Dovecot (dovecot(1)
).
Using the sievec command, Sieve scripts can be compiled into a binary representation. The 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 time it is executed. Using the sievec tool, this can be performed manually by an authorized user to increase performance.
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.
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.
Alternative Dovecot configuration file path.
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 the sieve-dump(1)
command produces for a compiled Sieve binary file. Note that this option is not allowed when the out-file argument is a directory.
Enable Sieve debugging.
Overrides the configuration setting from /etc/dovecot/dovecot.conf and from the userdb with the given value. In order to override multiple settings, the -o option may be specified multiple times.
Run the command only for the given user. It's also possible to use '*' and '?' wildcards (e.g. -u *@example.org).
auth_info specifies additional conditions for the user command. The auth_info option string has to be given as name = value pair. For multiple conditions the -x option could be supplied multiple times.
Possible names for the auth_info are:
sievec will exit with one of the following values:
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
dovecot(1)
, dovecot-lda(1)
, sieve-dump(1)
, sieve-filter(1)
, sieve-test(1)
, pigeonhole(7)