> On 12/04/2014 09:38 PM, Noel Jones wrote:
> 
> You can remove or alter the line with a smtp_header_checks rule, but
> be *very careful* not to alter unrelated headers, or Received:
> headers that aren't yours.  Construct your regexp carefully.
> 
> Also be aware (at least in the past) some spam appliances consider a
> missing Received: header as a spam sign, so removing the header may
> affect your mail delivery to a few sites.

thanks to all, I appreciate your advice.

After testing few rules, I have settled with the following, which works
nicely (and instead of removing the whole line, just replaces the
hostname/IP adress with localhost/127.0.0.1:

# cat /etc/postfix/maps/header_checks
/^Received: from \[[0-9\.]+\] \([a-zA-Z0-9\.-]+ \[[0-9\.]+\]\) by
mail.origin.com \(Postfix\) (.*)/ REPLACE Received: from localhost
(localhost [127.0.0.1]) by mail.origin.com (Postfix) $1

thanks,
Martin

Reply via email to