Re: [exim] use system filter to create a copy of each outgoi…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Martin Kaiser
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] use system filter to create a copy of each outgoingmessage
Thus wrote Marc Haber (mh+exim-users@???):

> On Mon, 8 Oct 2012 00:02:54 +0200, Martin Kaiser <lists@???>
> wrote:
> >When I send a mail to external@??? a copy to
> >redirect@??? is created. However, when mails to
> >external@??? can be delivered but mails to redirect@???
> >can't (temporary problem), the entire mail ends up in the queue.


> Can I see an exim -bp example of such a mail? I would expect the
> recipients to be handled as if the message was sent to both addresses,
> with both being delivered individually.


on the MX host that handles the redirected address, I forced a 451 by
routing redirect@??? to :defer:

root@host:~# exim4 -bp

 0m   801 1TLgkl-0006MD-Ai <lists@???>
          external@???


-> the redirect address does not appear anywhere

> >When redirect@??? becomes available some time later, the entire
> >mail is re-sent. In other words, external@??? receives the mail
> >twice.


> I would like to see log entries for that.


2012-10-09 20:50:11 1TLgkl-0006MD-Ai <= lists@??? H=p54b09fd0.dip.t-dialin.net (blabla.kaiser.cx) [xx.xxx.xxx.xxx] P=esmtpsa X=TLSv1:AES256-SHA:256 A=authCramMD5:martin S=801 id=20121009205010.GA3486@???
2012-10-09 20:50:12 1TLgkl-0006MD-Ai == redirect@??? <external@???> R=dnslookup T=remoteSmtp defer (-44): SMTP error from remote mail server after RCPT TO:<redirect@???>: host mx.test.xyz [xx.xxx.yy.yyy]: 451
2012-10-09 20:50:14 1TLgkl-0006MD-Ai => external@??? R=dnslookup T=remoteSmtp H=mx.address.xyz [zz.zz.z.zz] X=TLSv1:AES256-SHA:256

This is what happens when redirect@??? becomes ok again

uuups, I just found out that the mail is re-sent only to
redirect@???, this is what I expected.

However, the problem persists if both redirect@??? and
external@??? are relayed to the same "next" server, e.g. both
domains have the same MX. In this case, the mail is sent twice

2012-10-09 21:15:28 1TLh9E-0006qS-MU <= lists@??? H=blabla.my.host [x.y.z.a] P=esmtpsa X=TLSv1:AES256-SHA:256 A=authCramMD5:martin S=998 id=20121009211528.GF3486@???
2012-10-09 21:15:29 1TLh9E-0006qS-MU == redirect@??? <external@???> R=dnslookup T=remoteSmtp defer (-44): SMTP error from remote mail server after RCPT TO:<redirect@???>: host mx.test.xyz [x.y.y.y]: 451
2012-10-09 21:15:29 1TLh9E-0006qS-MU => external@??? R=dnslookup T=remoteSmtp H=mx.test.xyz [x.y.y.y] X=TLSv1:AES256-SHA:256

redirect@??? becomes available

2012-10-09 21:15:52 1TLh9E-0006qS-MU => redirect@??? <external@???> R=dnslookup T=remoteSmtp H=mx.test.xyz [x.y.y.y] X=TLSv1:AES256-SHA:256
2012-10-09 21:15:52 1TLh9E-0006qS-MU -> external@??? R=dnslookup T=remoteSmtp H=mx.test.xyz [x.y.y.y] X=TLSv1:AES256-SHA:256
2012-10-09 21:15:52 1TLh9E-0006qS-MU Completed

Best regards,

Martin