> -----Original Message-----
> From: Marek Kozlowski [mailto:m.kozlow...@mini.pw.edu.pl]
> Sent: Sunday, June 4, 2017 8:04
> To: Mark Scholten; postfix-users@postfix.org
> Subject: Re: Changing "mail from"
> 
> :-)
> 
> 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?
> 
> Best regards,
> Marek
> 
> PS. Be careful if using some SRS software (for example postsrsd) cause it may
> interact with canonical!

Hello Marek,

I did check if this works. However it seems to not work for me (or I'm missing 
a setting). Maybe an example for what I want to do helps.

Mail is sent to m...@mynoc.eu and forwarder to m...@streamservice.nl. In that 
case I want the mail from to be m...@mynoc.eu, I don't care about the original 
address in the mail from during the SMTP stage. Every other location where the 
original mail address is listed doesn't have to be changed (eg in the mail 
headers including the "From" line).

Kind regards,

Mark Scholten

Reply via email to