On 2/13/2012 9:24 AM, Alex Bligh wrote: > > > --On 13 February 2012 09:04:12 -0500 Rod K <post...@nisny.com> wrote: > >> Here's what I did: > > So, what I did for future readers of the archives is have the following > line in header_checks: > > /^Received: .*by (mail\.example\.com \(Postfix\) with > (ESMTPSA|SMTPSA|ESMTPA|SMTPSA).*)$/ REPLACE Received: by $1 > > This removes the inbound IP addresses data, but keeps the ID, date, > time etc, i.e.:
To prevent spam scanners from flagging this as an invalid Received header, you should name it X-Received:. > Note that this generates a warning from postmap about it looking like > an alias entry (perhaps this might be suppressed if the line starts > with a /). Don't postmap regexp tables. http://www.postfix.org/regexp_table.5.html -- Noel Jones