--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.:

Received: from [10.10.10.10] (10-10-10-10.example.com [10.10.10.10])
         by mail.example.com (Postfix) with ESMTPSA id D74CF456E001;
         Sat, 11 Feb 2012 18:35:40 +0000 (GMT)

turns into:

Received: by mail.example.com (Postfix) with ESMTPSA id D74CF456E001;
         Sat, 11 Feb 2012 18:35:40 +0000 (GMT)


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 /).

--
Alex Bligh

Reply via email to