Viktor Dukhovni:
> On Thu, Feb 17, 2022 at 11:02:37AM -0500, Wietse Venema wrote:
>
> > > Out of interest, how does this behave if one of the servers is temporarily
> > > unreachable?
> >
> > Randmap returns ONE result. Oh, and it should be
> >
> > default_transport_maps = randmap:{ ... }
Sorry, there is no default_transport_maps feature.
Unfortunately my suggestion for default_transport = randmap:{...}
would not work as expected. Te scheduler will look for a delivery
service 'randmap' with a weird destination that contains {...}.
Instead one could configure something like
transport_maps =
inline:{
{ $myhostname = local: },
{ localhost.$mydomain = local: }
{ $mydomain = local: },
}, randmap:{ smtp:[old.example], smtp:[new.example], ... }
but this is painful and it duplicates how mydestination is handled
internally.
> The various transports could have "smtp_fallback_relay" set, otherwise
> an explicit "nexthop" will be the only one considered, though it could
> be an MX record with various priorities.
That is a good point.
Wietse