On 8/7/2014 3:24 PM, Thomas Glanzmann wrote:
> Hello,
> I would like to strip received headers and change the helo_name for
> outgoing e-mail fone _one_ transport for _one_ recipient domain.
> Everything else I want to leave as it is. What is the best way to obtain
> that, should I use a second instance with the helo_name and
> header_checks in place and call via the transport, or should I crete a
> seperate cleanup for the one transport which sets the helo_name and
> strips the received header using header_checks? If that is the case how
> do I call the cleanup for the one transport but not the default and can
> I set using the cleanup the helo_name or should I go for second
> instance?
> 
> As I write this from a complexity point of view the second instance
> seems to be the right way to go. Because it keeps things simple.
> 
> Cheers,
>         Thomas
> 


Create a custom transport in master.cf. Start with a copy of the
default "smtp" transport.  Use -o smtp_helo_name=host.example.com
to override the HELO name, use -o
smtp_header_checks=regexp:/path/to/file to strip existing Received:
headers.

Note: stripping Received: headers is generally considered bad
practice since it removes important tracking and debug information.
 Some anti-spam engines will penalize mail with no Received:
headers.  And of course you can't suppress the Received: headers
added by the server you're delivering mail to.

Your master.cf entry will look something like this:
mangle  unix  -    -   n   -   -   smtp
  -o smtp_helo_name=host.example.com
  -o smtp_header_checks=regexp:/etc/postfix/smtp_header_checks

Use a transport_maps entry to direct the single user to the custom
transport.




  -- Noel Jones

Reply via email to