[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 00:07:02 EEST 2009
Well i delete the antispam and antivirus to make a more easy reading
logfile:
Aug 14 21:40:23 acamail postfix/smtpd[11036]: 8849C6FEE9:
client=acamail.acasalud.com.ar[127.0.0.1]
Aug 14 21:40:23 acamail postfix/cleanup[11038]: 8849C6FEE9:
message-id=<921466190722c1dd536fd75de5756eb4.squirrel at 10.11.0.21>
Aug 14 21:40:23 acamail postfix/qmgr[10830]: 8849C6FEE9:
from=<sender_user at acasalud.com.ar>, size=1011, nrcpt=1 (queue active)
Aug 14 21:40:23 acamail postfix/smtpd[11036]: disconnect from
acamail.acasalud.com.ar[127.0.0.1]
Aug 14 21:40:23 acamail dovecot: imap-login: Login: user=<sender_user>,
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Aug 14 21:40:23 acamail dovecot: deliver(usera at acasalud.com.ar): sieve:
msgid=<921466190722c1dd536fd75de5756eb4.squirrel at 10.11.0.21>: stored
mail into mailbox 'INBOX'
Aug 14 21:40:23 acamail postfix/pickup[10831]: A9DA56FEED: uid=40
from=<sender_user at acasalud.com.ar>
Aug 14 21:40:23 acamail postfix/cleanup[11038]: A9DA56FEED:
message-id=<921466190722c1dd536fd75de5756eb4.squirrel at 10.11.0.21>
Aug 14 21:40:23 acamail dovecot: deliver(usera at acasalud.com.ar): sieve:
msgid=<921466190722c1dd536fd75de5756eb4.squirrel at 10.11.0.21>: forwarded
to <userb at acasalud.com.ar>
Aug 14 21:40:23 acamail postfix/pipe[11039]: 8849C6FEE9:
to=<usera at acasalud.com.ar>, relay=dovecot, delay=0.15,
delays=0.07/0.03/0/0.06, dsn=2.0.0, status=sent (delivered via dovecot
service)
Aug 14 21:40:23 acamail postfix/qmgr[10830]: 8849C6FEE9: removed
Aug 14 21:40:23 acamail postfix/qmgr[10830]: A9DA56FEED:
from=<sender_user at acasalud.com.ar>, size=1198, nrcpt=1 (queue active)
Aug 14 21:40:23 acamail dovecot: IMAP(sender_user): Disconnected: Logged
out bytes=887/438
Aug 14 21:40:23 acamail dovecot: imap-login: Login: user=<sender_user>,
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Aug 14 21:40:24 acamail dovecot: deliver(userb at acasalud.com.ar): sieve:
msgid=<921466190722c1dd536fd75de5756eb4.squirrel at 10.11.0.21>: stored
mail into mailbox 'INBOX'
Aug 14 21:40:24 acamail dovecot: IMAP(sender_user): Disconnected: Logged
out bytes=139/1580
Aug 14 21:40:24 acamail dovecot: deliver(userb at acasalud.com.ar): sieve:
msgid=<921466190722c1dd536fd75de5756eb4.squirrel at 10.11.0.21>: forwarded
to <userb at acasalud.com.ar>
Aug 14 21:40:24 acamail postfix/pipe[11039]: A9DA56FEED:
to=<userb at acasalud.com.ar>, relay=dovecot, delay=0.44,
delays=0.03/0.03/0/0.39, dsn=2.0.0, status=sent (delivered via dovecot
service)
Aug 14 21:40:24 acamail postfix/qmgr[10830]: A9DA56FEED: removed
Aug 14 21:40:24 acamail postfix/pickup[10831]: 2064C6FEEC: uid=40
from=<sender_user at acasalud.com.ar>
Aug 14 21:40:24 acamail postfix/cleanup[11038]: 2064C6FEEC:
message-id=<921466190722c1dd536fd75de5756eb4.squirrel at 10.11.0.21>
Aug 14 21:40:24 acamail postfix/qmgr[10830]: 2064C6FEEC:
from=<sender_user at acasalud.com.ar>, size=1354, nrcpt=1 (queue active)
Aug 14 21:40:24 acamail postfix/pipe[11039]: 2064C6FEEC:
to=<userb at acasalud.com.ar>, relay=dovecot, delay=0.07,
delays=0.06/0/0/0.01, dsn=5.4.6, status=bounced (mail forwarding loop
for userb at acasalud.com.ar)
Aug 14 21:40:24 acamail postfix/cleanup[11038]: 262F06FEED:
message-id=<20090815004024.262F06FEED at acamail.acasalud.com.ar>
Aug 14 21:40:24 acamail postfix/qmgr[10830]: 262F06FEED: from=<>,
size=3282, nrcpt=1 (queue active)
Aug 14 21:40:24 acamail postfix/bounce[11050]: 2064C6FEEC: sender
non-delivery notification: 262F06FEED
Aug 14 21:40:24 acamail postfix/qmgr[10830]: 2064C6FEEC: removed
Aug 14 21:40:24 acamail dovecot: deliver(sender_user at acasalud.com.ar):
sieve: msgid=<20090815004024.262F06FEED at acamail.acasalud.com.ar>: stored
mail into mailbox 'INBOX'
Aug 14 21:40:24 acamail postfix/pipe[11039]: 262F06FEED:
to=<sender_user at acasalud.com.ar>, relay=dovecot, delay=0.04,
delays=0.01/0/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service)
Aug 14 21:40:24 acamail postfix/qmgr[10830]: 262F06FEED: removed
Andrés Fernando Yacopino
Infraestructura - Dpto Sistemas
AcaSalud
Cooperativa de Prestaciones Médico Asistenciales Limitada
Tel: 0341-4208726
ayacopino at acasalud.com.ar
Mauricio Tavares escribió:
> Andrés Yacopino wrote:
>> Greetings, i am testing:
>>
>> - dovecot-1.2-sieve-0.1.11
>> - dovecot 1.2.3
>> - dovecot-1.2-managesieve-0.11.8 (with patch)
>>
>> 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";
>> }
>>
>> The redirection works but the sender user (userA) get the following
>> error:
>>
>> This is the mail system at host acamail.acasalud.com.ar.
>>
>> I'm sorry to have to inform you that your message
>> could not
>> be delivered to one or more recipients. It's
>> attached below.
>>
>> The mail system
>>
>> <userB at acasalud.com.ar
>> <http://10.11.0.21/webmail/src/compose.php?send_to=ayacopino%40acasalud.com.ar>>:
>> mail forwarding loop
>> for userB at acasalud.com.ar
>> <http://10.11.0.21/webmail/src/compose.php?send_to=ayacopino%40acasalud.com.ar>
>>
>>
>>
>>
>> Could somebody can help me.
>>
>> Thanks,
>>
> What does your log file says?
>
> Also, you could cheat and tell it to use copy instead of keep and
> redirect?
More information about the dovecot
mailing list