Re: [exim] Data ACL - Received: from header

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Mike Cardwell
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Data ACL - Received: from header
Mike Cardwell wrote:

> Hmmm. Ignore my previous suggestion. The received header added by Exim
> is already in $h_Received: variable by the time you get to the DATA ACL.
> Perhaps stick a newline before "from" so you get the previous received
> header:
>
> condition = ${if eq{${if match{$h_Received:}{\N\nfrom
> \[([\d\.]+)\]\N}{$1}{}}}{$sender_host_address}}


Looks like it works. I've set it to log such occurances on my server. It
just logged an email that contains:

Received: from cp898882-b.dbsch1.nb.home.nl ([84.27.0.173]:60540)
         by haven.grepular.com with esmtp (Exim 4.69)
         (envelope-from <0UAAZJ@???>)
         id 1M9KzU-0001Lb-MB
         for r-n-forum@???; Wed, 27 May 2009 16:24:32 +0100
Received: from [84.27.0.173] by mx4.hotmail.com; Wed, 27 May 2009 
16:24:28 +0100


--
Mike Cardwell
(https://secure.grepular.com/) (http://perlcv.com/)