[Dovecot] Dovecot + Sieve
Daniel L. Miller
dmiller at amfes.com
Tue Sep 4 20:34:23 EEST 2007
Gregory Mokhin wrote:
>> 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).
>
> Regards,
> Gregory
>
>
>
What is the format of your global setting? I tried -
plugin {
sieve = /var/mail/%d/%u
}
since my mail dirs are stored under /var/mail/domain/username. Does
that search for ".dovecot.sieve" in the specified folder? Or do I need
to add that to the path?
--
Daniel
More information about the dovecot
mailing list