On 12/22/2020 2:31 PM, Wietse Venema wrote:
John Schmerold:
I want messages sent to [email protected] to be redirected to
[email protected]

Until this morning, adding canonical_maps = hash:/etc/postfix/canonical
to main.cf got the job done.

canonical contained:
    @tld1.com @redirected.com

Now the remote server is rejecting the message with this error:
      <[email protected]> (expanded from <[email protected]>): host
          mx10.redirected.com[104.119.187.151] said: 550 Unauthorized
recipient: domain part
Postix sends "RCPT TO:<[email protected]>" to the remote SMTP
server (not the 'expanded from' stuff, that would not make any
sense).

Postfix adds "(expanded from <[email protected]>)" only in the
NON-DELIVERY NOTIFICATION, so that you can see why it sends
mail to [email protected].

How do I persuade Postfix to replace tld1.com with redirected.com,
without the "expanded from" issue (I am not even sure what expanded from
means)?
It already does that.

        Wietse

I should have looked at the log before sending this note. Postfix is including a " orig_to=" header when sending to the destination server, that is causing our problem.

Is there a way to turn off "orig_to=" in this situation?


Reply via email to