[Dovecot] Error when using include directive in Sieve
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.
Juan Asensio Sánchez wrote:
Personal sieve script is not sure to exist, only if the user has
Unfortunately, included files must exist. See http://dovecot.org/list/dovecot/2008-February/029090.html
Cheers, Anders.
On 5/27/2008 6:47 PM, Juan Asensio Sánchez wrote:
Hi
I have two sieve scripts:
Is this the same installation as the one with the 'error antispam plugin'?
If so, there is no 1.1rc15, so, was it actually 1.1rc5? Or 1.0rc15? Iinclude support is not available in the 1.0.x series, only in 1.1...
--
Best regards,
Charles
Yes, xD 1.1rc5. And yes, this is the same installation that the "error using antispam plugin". But deactivating antispam plugin, the problem with sieve persists. So, as Anders has said, the included script must exist, so there is no viable solution.
Thanks.
2008/5/28 Charles Marcus CMarcus@media-brokers.com:
On 5/27/2008 6:47 PM, Juan Asensio Sánchez wrote:
Hi
I have two sieve scripts:
Is this the same installation as the one with the 'error antispam plugin'?
If so, there is no 1.1rc15, so, was it actually 1.1rc5? Or 1.0rc15? Iinclude support is not available in the 1.0.x series, only in 1.1...
--
Best regards,
Charles
participants (3)
-
Anders
-
Charles Marcus
-
Juan Asensio Sánchez