Skip to content

MX Record

An MX record is a type of DNS record that specifies the mail servers responsible for receiving email messages for a domain.

Definition

What it is

An MX record (Mail Exchange) is a type of DNS record that specifies the mail servers responsible for accepting messages for a domain [1]. Each MX record has a priority: the lower the number, the higher the server’s preference. A domain can have multiple MX records for redundancy.

Why it matters

The MX is essential for any domain that sends or receives email. An error in the MX can cause emails not to arrive or to be rejected. For this reason, email providers (Google Workspace, Microsoft 365, Zoho) provide their own MX records that must be configured correctly.

How it works in practice

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.

Connections

  • dns — the system containing the record
  • txt-record — the record containing SPF, DKIM, and DMARC
  • nameserver — the server that stores the MX
  • spf — the email authentication policy
  • dmarc — the email alignment policy

Common mistakes

  • MX to an IP. The MX must point to a hostname, not an IP.
  • Misconfigured priority. An incorrect priority can send email to a secondary server unnecessarily.
  • Host without an A record. If mail.example.com has no A record, the MX does not resolve.

Evidence

Etymology

Origin: acronym

Mail Exchange — mail exchange

  • M (root): Mail
  • X (root): Exchange
Cognates

Morphology

Variants

Typographical errors

  • MX record
  • mx-record

Plurals

  • MX records

Semantic network

MX Recorddns-recordDNSTXT RecordSPFDKIMDMARC

● broader ● narrower ● related

Broader

  • dns-record

Related

Sources