Viktor Dukhovni:
> On Mon, Aug 08, 2022 at 03:03:07PM -0400, Wietse Venema wrote:
> 
> > All we need is a small bit of code that transforms SRV lookup results
> > into a list of [host]:port forms that the Postfix SMTP client already
> > understands.
> 
> We have code to do MX lookups, it can be cloned to RFC6186 SRV lookups
> instead and then correctly implement the preference and weight logic!
> 
> The transformation needs to sort by preference and randomise the weights
> with a given preference per the RFC.

The result of MX lookup and sorting by preference is a linear list.

The result of SRV lookup and sorting by weight is also a linear
list. A this point I prefer a list in [host]:port form, simply
because it maximzes the reuse of all existing code.

        Wietse

Reply via email to