Hello Wietse, On Wed, 22 Oct 2025, Wietse Venema via Postfix-users wrote:
> Jozsef Kadlecsik via Postfix-users: > > > > I can't seem to specify nexthop and transport so that nexthop depends on > > recipient and transport depends on sender. > > > > According to the manpage of transport(5) > > ... > > When no transport is specified, Postfix uses the transport that > > matches the address domain class (see DESCRIPTION above). The > > following sends all mail for example.com and its subdomains to > > hostgateway.example.com: > > > > example.com :[gateway.example.com] > > .example.com :[gateway.example.com] > > The text about empty transport or next-hop results pre-dates the > implementation of some transport or nexthop overrides. That is a > problem: when adding something one has to find every piece of > documentaion that may be affected. > > Text that needs to be added to the descriptions of transport_maps: > > When no transport is specified, Postfix uses the transport that > matches the address domain class (see DESCRIPTION above), or > the transport specified with default_transport or with > sender_dependent_default_transport_maps. > > When no nexthop is specified, Postfix uses the recipient domain, > or the nexthop specified with the transport for the address > domain class, with default_transport, with > sender_dependent_default_transport_maps, or with relayhost. > > The exact order of the wording needs to be verified. > > Simlar text is needed for default_transport, and > sender_dependent_default_transport_maps. I'm sorry for wasting time, I was wrong, at least twice. First, by checking the source code, actually transport_maps do not override sender_dependent_default_transport_maps when transport is not included in the return vaue, i.e just ":nexthop" returned. That is the best, because the more specific value has got thus the higher priority. Secondly, I was blind, I can simply specify the proper transport in the transport_maps instead of the generic "relay". Best regards, Jozsef -- E-mail : [email protected], [email protected], [email protected] Address: Wigner Research Centre for Physics H-1525 Budapest 114, POB. 49, Hungary _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
