Mail exchange

A mail exchange (MX) record specifies the mail server where mail for this domain should be delivered to. A domain may have multiple MX records, each has a 16bit preference.

type t = {
  1. preference : int;
  2. mail_exchange : [ `host ] Domain_name.t;

The type of a mail exchange.

val pp : t Fmt.t

pp ppf t pretty-prints the mail exchange.

val compare : t -> t -> int

compare a b compares the name and preference of a with b.