> On Sep 23, 2019, at 3:48 PM, Jesper Dybdal <[email protected]> wrote:
>
> I have tried the following:
>
>> relayhost = [smarthost.arrowmail.co.uk]:587
>> sender_dependent_default_transport_maps =
>> cdb:/etc/postfix/sender_default_transport
>>
>> # cat /etc/postfix/sender_default_transport
>> [email protected] smtp
>
> Which I had hoped would cause direct to MX delivery of mail from
> [email protected].
> But mails from that address is still delivered to the smarthost.
As documented in transport(5), when a transport table entry does not
specify an explicit nexthop, it uses the extant (default) nexthop
for the recipient. In your case that's specified via "relayhost".
The transport:nexthop pair is contructed in the qmgr(8) process,
with help from trivial-rewrite(8).
> So what have I mosunderstood?
You'll need to change your configuration to set "relayhost" empty
and instead configure:
default_transport = smtp:[smarthost.arrowmail.co.uk]:587
The sender-dependent default transport will override the global
default transport.
--
Viktor.