On Thu, Jan 28, 2021 at 04:51:13PM +0100, Gerben Wierda wrote:

> I have an alias that I use for a certain external web site. Mail sent
> to that alias ends up in my mailbox.
> 
> Is it possible in some way to have — for mail sent to that domain only
> — to have a canonical rewrite of the from/sender address?

Yes, at the cost of a dedicated transport whose master.cf entry contains
an override for smtp_generic_maps:

    master.cf:
        mycanon unix ... smtp
            -o smtp_generic_maps=$mycanon_generic_maps

    main.cf:
        transport_maps = inline:{ {example.com = mycanon:} }
        mycanon_generic_maps = inline:{ { @$myorigin = myal...@mydomain.net } }

-- 
    Viktor.

Reply via email to