[Dovecot] Redirecting mail gives 'mail forwarding loop' to the sender - calling for sieve help

Andrés Yacopino ayacopino at acasalud.com.ar
Sat Aug 15 01:37:00 EEST 2009


Yes, that is a global script.
Yes you are the right , the script is executed again but i thought that 
this line do the verification to avoid this:

if header :contains ["To","Cc"] "userA at acasalud.com.ar"

It seems it didnt' but why?, can you explain better?

Thanks a lot,

Andrés Fernando Yacopino



Timo Sirainen escribió:
> On Fri, 2009-08-14 at 17:17 -0300, Andrés Yacopino wrote:
>   
>> I am trying to use sieve_after to execute some redirection of mails.
>>
>> I have put in the after script:
>>
>> require "include";
>> require "fileinto";
>>
>> if header :contains ["To","Cc"] "userA at acasalud.com.ar"
>> {
>>    keep;
>>    redirect "userB at acasalud.com.ar";
>> }
>>     
>
> So that's a global script, right?
>
>   
>> The redirection works but the sender user (userA) get the following error:
>>     
> ..
>   
>> <userB at acasalud.com.ar <http://10.11.0.21/webmail/src/compose.php?send_to=ayacopino%40acasalud.com.ar>>: mail forwarding loop
>>     
>
> I suppose it's because when usera sends to userb, userb executes the
> global script again and the mail is redirected to userb again, which
> triggers the loop detection. Either disable after script from userb or
> add some check there so that it doesn't get redirected again.
>   


More information about the dovecot mailing list