[Dovecot] Dovecot + Sieve

Marcin Michal Jessa lists at yazzy.org
Tue Sep 4 20:48:31 EEST 2007


> 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 at yazzy.org): Sep 04 18:04:16 Info: sieve runtime error:
Keep: Generic Error
deliver(lists at yazzy.org): Sep 04 18:04:16 Error:
sieve_execute_bytecode(/usr/local/etc/sieve/Junkc) failed
deliver(lists at yazzy.org): Sep 04 18:04:16 Info:
msgid=<200709042006.51319.flash at preferance.ru>: Rejected: Quota exceeded

Some work fine:
deliver(abc at def.com): Sep 04 19:08:34 Info:
msgid=<s6dd58a7.055 at xyz.abc.state.ga.us>: saved mail to Junk
deliver(abc at def.org): Sep 04 19:13:37 Info:
msgid=<9B1E9600-42CC-49E0-8CB8-AF826257EE1B at 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.






More information about the dovecot mailing list