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

Timo Sirainen tss at iki.fi
Sat Aug 15 00:46:39 EEST 2009


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090814/56806a07/attachment.bin 


More information about the dovecot mailing list