Skip to content

How it works in practice

The MX record points to a hostname (not an IP) and has a priority; the sender’s mail server queries the MX to know where to deliver.

The MX is defined in the DNS zone. For example, example.com. IN MX 10 mail.example.com.. Priority 10 indicates preference. The hostname mail.example.com must in turn have an A or AAAA record resolving to the mail server’s IP [1]. If there are multiple MX records, the sending server tries the lowest priority first.