On Wed, Jan 27, 2021 at 05:30:25PM -0500, Wietse Venema wrote:
> It's simple enough to replace all instances of [email protected] with
> something else:
>
> /etc/postfix/main.cf:
> canonical_maps =
> inline:{
> { [email protected] = other@address }
> }
>
> That will also take care of headers, and MAIL FROM commands in SMTP.
Indeed, though I usually avoid falling in that trap, perhaps I failed in
this case to consider whether the user is asking the right question.
If the problem value of the "From:" header is fixed, it can certainly be
replaced with a better (static) value. If however the requirement is to
replace it with some dynamic value of the "Reply-To" that varies from
message to message, then canonical_maps would not suffice.
--
Viktor.