Wietse Venema: > Dominic Raferd: > > On 16 January 2017 at 15:11, Wietse Venema <wie...@porcupine.org> wrote: > > > > > > Dominic Raferd: > > > > One of the few remaining issues on my postfix server is that > > > > double-bounce messages don't come from the 'right' envelope sender. > > > > > > man 5 postconf | less '+/^double_bounce_sender' > > > > > > This also is the default for address_verify_sender. > > > > Thanks, I tried this but whatever I put it seems to append > > @$myhostname and this breaks my DKIM (appending @$myorigin would be > > ok). > > Then why don't YOU append the domain!
Forgot that Postfix is hard-coded to append @$myhostname. In that case, you'd have to use canonical_maps to rewrrite double_bounce@$myhostname: canonical_maps = inline:{$double_bounce_sender@$myhostname=somethingelse} (assumes Postfix 3.x). Having the map inlined in main.cf brings the benefit of parameter expansion. Wietse