OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: hiding relay client info in headers

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Wed Jul 08 2009 - 17:37:06 CDT


GeoffSweet wrote:
> Greetings all, we have corporate postfix mail servers that act as our central point for inbound mail as well as acting as smarthosts for outbound for our Exchange servers in various locations. We do this by allowing the exchange servers to relay off the Postfix servers by including them in the mynetworks. However the mail message arrives to it's intended recipient with all the relay information in the header:
>
> Received: from wemadeusa.com (static-71-121-162-98.sttlwa.dsl-w.verizon.net [71.121.162.98])
> by mail1.wemadeusa.com (Postfix) with ESMTP id C470D178056
> for <*test user recipient snipped*>; Wed, 8 Jul 2009 15:12:39 -0700 (PDT)
>
> Is there a way to remove this information from the header in Postfix 2.3?
>
> Thanks!
>
> -Geoff Sweet

http://www.postfix.org/header_checks.5.html
see the IGNORE action.

something like (untested)
/^Received: .*\[71.121.162.98\].*by mail1\.wemadeusa\.com/
   IGNORE

    -- Noel Jones