Martin Brampton:
> Is there a way to set a from address for Postfix automatic messages on
> delivery failure?
On 03/03/2019 21:13, Wietse Venema wrote:
> With command-line submission:
> sendmail -f bounce-address recipient-address...
>
> With SMTP submission:
> MAIL FROM:<bounce-address>...
>
> With QMQP, the bounce address is the second protocol field (immediately
> after the message content which is field 1), if I recall correctly.
Martin Brampton:
> Thanks, but I'm looking for a way to set a default in postfix, not to
> set a bounce address for a particular email. Is that possible?
To override the bounce address and the From: header:
/etc/postfix/main.cf:
sender_canonical_maps = static:[email protected]
To override the bounce address without changing the From: header:
/etc/postfix/main.cf:
sender_canonical_maps = static:[email protected]
sender_canonical_classes = envelope_sender
Wietse