On Sun, Jun 04, 2017 at 08:04:14AM +0200, Marek Kozlowski wrote:
> On 06/04/2017 07:58 AM, Mark Scholten wrote:
>> Hello,
>> 
>> We have a few forwarders where we need to change the "mail from"
>> during the SMTP stage. Nothing else has to change and I know that
>> spam would be seen as coming from our mail server if we forward
>> it. This last part is acceptable for us. On the mail server that we
>> want to retire this is done (but this is Sendmail and difficult to
>> maintain, so we want to switch to Postfix but keeping this
>> behavior).
>> 
>> Is it possible with Postfix to do this or do I need to look for a
>> milter or something else to do this?
> 
> canonical?

Pretty sure that PCRE header_checks will do that fairly effectively,
it'll do a find and replace.

Though admittedly my use of it is minimal; to remove the IP that gives
away my physical location (so headers match mail sent via ssh session
into the server without actually having to do that every time).
That's a fairly trivial change since it just removes two headers.

In your case you probably want to change the From and/or Sender, both
of which should be achievable with header_checks.  Maybe the
Return-Path as well, but I'm not sure if it'll work on that.


Regards,
Ben

Attachment: signature.asc
Description: PGP signature

Reply via email to