[Dovecot] sieve script

Lampa lampacz at gmail.com
Fri Jan 29 21:45:30 EET 2010


2010-01-29T19:52:15.876551+01:00 hermes dovecot:
deliver(user at domain.tld): sieve: main_script: line 6: number of
redirect actions exceeds policy limit
2010-01-29T19:52:15.881478+01:00 hermes dovecot:
deliver(centrumrealit at remax-czech.cz): sieve: execution of script
/home/mail/domain.tld/user/.dovecot.sieve failed, but implicit keep
was successful

plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve

        sieve_max_redirects = 20

        sieve_global_path = /home/mail/.dovecot.global.sieve
        sieve_global_dir = /home/mail/sieve
}

using dovecot 1.2.9 on debain

2010/1/29 Stephan Bosch <s.bosch at utwente.nl>:
> Lampa wrote:
>>
>> Hello,
>>
>> after qmail migration need convert some .procmailrc scripts. Found
>> converter procmail -> sieve, but i'm not sure of quality of
>> conversion.
>>
>> My script:
>> ---------------
>> if header :contains "from" ["user at domain1.tld", "user2 at domain2.tld",
>> "user3 at domain3.tld"] {
>>        redirect "foo1 at bar.tld";
>>        redirect "foo2 at bar.tld";
>> ....
>>        redirect "foo20 at bar.tld";
>> } else {
>>        keep;
>> }
>> ---------------
>>
>> Converter script:
>> ---------------
>> require ["fileinto","regex","envelope","vacation"];
>>
>> if envelope :comparator "i;octet" :contains
>> "From.*(user at domain1.tld|user2 at domain2.tld|user3 at domain3.tld)" "" {
>>        redirect "foo1 at bar.tld foo2 at bar.tld .... foo20 at bar.tld";
>> }
>>
>> if true {
>>        fileinto "$DEFAULT";
>> }
>
> This not Sieve. There is no envelope part "From.*(... " and redirect only
> accepts one address.
>
>> ---------------
>>
>> Converter script is cannot be compiled. But it used other style envelope.
>>
> The converter's script does not make much sense, although I can see what it
> is trying to do.
>
>> So what is difference between envelope and header ?
>
> The header test matches against headers of the message itself. The envelope
> test matches against the SMTP envelope.
>
>> And there are some limits for redirect ?
>
> Check the 'Configurable Limits' section of the INSTALL file (wiki needs to
> be updated):
>
> http://hg.rename-it.nl/dovecot-1.2-sieve/file/0.1.15/INSTALL
>
> So, you can configure sieve_max_redirects according to your needs.
>
> Regards,
>
> Stephan.
>



-- 
Lampa


More information about the dovecot mailing list