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 <[email protected]>)
         id 1M9KzU-0001Lb-MB
         for [email protected]; 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/)

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to