On 6/23/2011 3:30 PM, John Baker wrote:
Hi,

I find it annoying when headers are truncated to remove relay
records because it makes it harder for me to trace various
sorts of problems all the way back so I generally don't do it.

But it's even more annoying when overzealous blacklists like
Barracuda toss email relayed via our server from authenticated
users because their ISP's ip range shows up somewhere in the
headers.

So what is the best practice in postfix for removing headers
before they relay back out into Internet?

--
John Baker
Network Administrator
Marlboro College
Phone: 451-7551 Cell: 451-6748



There is no best practice.  Whatever you do has drawbacks.

I decided that being able to communicate trumped adhering to standards, so I use:

# main.cf
smtp_header_checks = pcre:/etc/postfix/maps/smtp_header_checks

# smtp_header_checks  (all one line, beware wrapping)
/^Received: (.*by host\.example\.com \(Postfix\) with ESMTPS?A id.*)$/ REPLACE X-Submission: $1

where host.example.com is my local server name.


  -- Noel Jones

Reply via email to