Free auditStart free
GlossaryGlossary · Technical SEO

MX record (mail exchange)

An MX record is a DNS record that says which mail servers accept email for a domain. See the fields, how priority works, an example and Google Workspace values.

2 min
read
3
sources
Oct 22, 2026
updated
Scaplet Editorial Team
author
In one line

An MX (mail exchange) record is a DNS record that names the mail server that accepts email for a domain. It has a preference number and a host. RFC 1035 says of the preference: "Lower values are preferred." Senders try the lowest number first and move up if delivery fails.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Explained

What an MX record is

When someone emails you, the sender's mail system needs to know where to deliver it. Google's help describes it this way: "When someone sends you an email, the sender's computer looks up the MX records for your email domain, like @your-company.com, to figure out where to deliver it."

The record has two fields in RFC 1035. PREFERENCE is "A 16 bit integer which specifies the preference given to this RR among others at the same owner. Lower values are preferred." EXCHANGE is "A <domain-name> which specifies a host willing to act as a mail exchange for the owner name."

02At a glance

An example

Field

Name

In the example
example.com
Meaning
The domain that receives mail
Field

Preference (priority)

In the example
10 and 20
Meaning
10 is tried first; 20 is the fallback
Field

Exchange (host)

In the example
mail1.example.com
Meaning
A hostname, not an IP address, for the mail server
MX records for a domain with a backup server
example.com.   3600  IN  MX  10  mail1.example.com.
example.com.   3600  IN  MX  20  mail2.example.com.

The host should itself resolve through an A record (or AAAA for IPv6). RFC 5321 covers how a sending server locates the target host: the records are ordered by preference with the lowest number most preferred, and if a domain has no MX records at all, the domain itself is treated as an implicit MX with preference 0.

03Good to know

Google Workspace values

Google's setup page says the Google Workspace MX record value is smtp.google.com, with the Priority set to 1. It warns "It can take up to 72 hours for the new MX records to be recognized." Google adds that domains that started on Workspace before 2023 may have older values starting with "aspmx", which are still supported. Always copy values from your mail provider's current instructions.
04Checklist

Check it in two minutes

First2
Run dig MX example.com +short in a terminal, or use any MX lookup tool.
Confirm every host listed belongs to your current mail provider.
Next1
Check that preferences match your provider's instructions.
Then1
Send a test message from an outside address and confirm it arrives.

For a site owner, a wrong MX record can mean email never arrives, including contact-form replies and password resets.

Sources · 3

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • google.com
  1. 01RFC 1035: Domain Names, Implementation and Specification (3.3.9 MX)rfc-editor.org · checked 2026-10-25
  2. 02RFC 5321: Simple Mail Transfer Protocol (5.1 Locating the Target Host)rfc-editor.org · checked 2026-10-25
  3. 03Google Workspace: Set up MX recordsknowledge.workspace.google.com · checked 2026-10-25
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What is in an MX record?

A preference number and the hostname of a mail server, attached to a domain name.

02How do I find my MX records?

Run dig MX yourdomain.com +short, or use a DNS lookup tool. Your DNS host's dashboard also shows them.

03What does MX record priority mean?

Lower numbers are tried first. Higher numbers act as fallbacks if the preferred server can't take the message.

04Do I need an MX record to receive email?

Usually. Senders look up MX records to find where to deliver mail for your domain. RFC 5321 treats a domain with no MX records as its own mail host, but most domains set MX records explicitly.

Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly