On 12/22/2020 2:31 PM, Wietse Venema wrote:
John Schmerold:
I want messages sent to lo...@tld1.com to be redirected to
lo...@redirected.com

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:
      <lo...@redirected.com> (expanded from <lo...@tld1.com>): host
          mx10.redirected.com[104.119.187.151] said: 550 Unauthorized
recipient: domain part
Postix sends "RCPT TO:<lo...@redirected.com>" to the remote SMTP
server (not the 'expanded from' stuff, that would not make any
sense).

Postfix adds "(expanded from <lo...@tld1.com>)" only in the
NON-DELIVERY NOTIFICATION, so that you can see why it sends
mail to lo...@redirected.com.

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