Steffen Kaiser wrote:
Any idea how to fix that? Second: When you remove the compiled Sieve script, is it re-created by deliver?
I have the same problem with the same config myself. No evidence that the script is being compiled automatically. If I remove the "sieve=path" global setting from dovecot.conf, deliver complains about not finding a per-user sieve or home path - so I assume the sieve module is being activated. Is there a particular format for the global sieve parameter? Does the script file HAVE to be named ".dovecot.sieve"?
I've got the global script working. Global setting is there in dovecot.conf. deliver should have write access to that directory, to save compiled script.
It's called .dovecot.sieve, but I don't think it's that important:
require "fileinto";
if header :matches ["X-Spam-Flag"] [ "YES" ] { fileinto "INBOX.Spam"; stop; }
Calling the folder INBOX.Spam is important, if it is to be delivered to users' Spam folders. It doesn't work with '+' delimited address+extension (I reported it in this list, but had no replies).
Actually I managed to fix this setting global_script_path = /usr/local/etc/sieve/Junk instead of sieve_global_dir = The emails marked as spam were moved to correct directory which is Junk, as listed in user's subscriptions file and not INBOX.Junk. I also correcred my sieve file to say:
require ["fileinto"]; # Move spam to Junk folder if header :contains ["X-DSPAM-Result"] "Spam" { fileinto "Junk"; # Stop here so that we do not reply on spams stop; }
But now I can see following logs for some of the accounts. Any idea what that may be? This account is not above quota which is set to 51200000 (just to be sure).
deliver(lists@yazzy.org): Sep 04 18:04:16 Info: sieve runtime error: Keep: Generic Error deliver(lists@yazzy.org): Sep 04 18:04:16 Error: sieve_execute_bytecode(/usr/local/etc/sieve/Junkc) failed deliver(lists@yazzy.org): Sep 04 18:04:16 Info: msgid=<200709042006.51319.flash@preferance.ru>: Rejected: Quota exceeded
Some work fine: deliver(abc@def.com): Sep 04 19:08:34 Info: msgid=<s6dd58a7.055@xyz.abc.state.ga.us>: saved mail to Junk deliver(abc@def.org): Sep 04 19:13:37 Info: msgid=<9B1E9600-42CC-49E0-8CB8-AF826257EE1B@abc.no>: saved mail to INBOX
Cheers, Marcin
P.S Becouse of that error I sent the same message twice yesterday and did not receive any follow ups so I had to copy and paste this thread from the web archive.