Re: [exim] Pass through mail routers twice?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Klaus Ethgen
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Pass through mail routers twice?
Hi Robert,

Am Do den 18. Dez 2014 um 20:01 schrieb Robert Blayzor:
> I am trying to track down an issue with a router I am running some embedded perl code in. I my exim log it appears that the code is called twice and I'm trying to avoid that.
>
> For a single inbound message in my logs I see:
>
> 18:41:37.471 exim[21050]: Perl says hello pid=21050
> 18:41:37.493 exim[21050]: 1Y1g13-0005TW-FN <= xxx@??? H=xxx [] P=esmtp S=3802 id=xxxx.org
> 18:41:37.916 exim[21052]: 1Y1g13-0005TW-FN Perl says hello pid=21052
> 18:41:37.984 exim[21052]: 1Y1g13-0005TW-FN => xxxx@??? R=pg_dbuser T=mdir_deliver
> 18:41:37.986 exim[21052]: 1Y1g13-0005TW-FN Completed


The key is that one is executed without ID and one with. I think you are
doing delivery verification in incoming ACL (most probably). That will
go through the router also in verification step. As this is done before
data part, there is no message id available.

You should set verify to false in your router or handle the verification
step in your script. (You might use the fact that there is no message id
in verification but I am not fully true that this is the case in any
cases.) See also [0].

Regards
Klaus

[0] http://exim.org/exim-html-current/doc/html/spec_html/ch-generic_options_for_routers.html
- -- 
Klaus Ethgen                              http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16   Klaus Ethgen <Klaus@???>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C