[Dovecot] Error when using include directive in Sieve

Juan Asensio Sánchez okelet at gmail.com
Wed May 28 01:47:58 EEST 2008


Hi

I have two sieve scripts:

# cat /var/vmail/sieve/global
require ["include"];
include :global "spam";
include :personal "sieve";

# cat /var/vmail/sieve/spam
require "fileinto";
if exists "X-Spam-Flag" {
  fileinto "Junk";
}

# ls -l /var/vmail/sieve/
total 16
-rw-r--r-- 1 mailuser mailgroup 68 2008-05-28 00:40 global
-rw------- 1 mailuser mailgroup 80 2008-05-28 00:40 globalc
-rw-r--r-- 1 mailuser mailgroup 68 2008-05-27 21:15 spam
-rw------- 1 mailuser mailgroup 80 2008-05-27 21:25 spamc

# cat /etc/dovecot/dovecot.conf
[...]
sieve_global_dir = /var/vmail/sieve/
sieve_global_path = /var/vmail/sieve/global
[...]

When delivering a message I get:

deliver(*****@*******): May 28 00:39:04 Error:
sieve_execute_bytecode(/var/vmail/sieve/globalc) failed

Personal sieve script is not sure to exist, only if the user has
created it. If I put the contents of the spam script in the global
script (replacing the content), everything works fine. Why does this
happen? Is it because the personal script doesn't exists?Or is the
syntax incorrect (i don't think this because the script is compiled)?

Thanks in advance.


More information about the dovecot mailing list