# 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.

Canonical: https://scaplet.com/glossary/mx-record

Glossary Glossary · Technical SEO

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fmx-record%20(%22MX%20record%20(mail%20exchange)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fmx-record%20(%22MX%20record%20(mail%20exchange)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fmx-record%20(%22MX%20record%20(mail%20exchange)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fmx-record%20(%22MX%20record%20(mail%20exchange)%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 2 minutes.

1. [What an MX record is 01](#what-an-mx-record-is)
2. [An example 02](#an-example)
3. [Google Workspace values 03](#google-workspace-values)
4. [Check it in two minutes 04](#check-it-in-two-minutes)

_01_Explained

## 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."

_02_At 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](/glossary/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.

_03_Good 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.

Common mistake

Leaving old MX records in place when moving providers. Google's setup steps say to remove any other MX records, because email might not work correctly if you keep old or incorrect ones.

_04_Checklist

## Check it in two minutes

First_2_
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.

Next_1_
Check that preferences match your provider's instructions.

Then_1_
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. 01 [RFC 1035: Domain Names, Implementation and Specification (3.3.9 MX)](https://www.rfc-editor.org/rfc/rfc1035.html#section-3.3.9) rfc-editor.org · checked 2026-10-25
2. 02 [RFC 5321: Simple Mail Transfer Protocol (5.1 Locating the Target Host)](https://www.rfc-editor.org/rfc/rfc5321.html#section-5.1) rfc-editor.org · checked 2026-10-25
3. 03 [Google Workspace: Set up MX records](https://knowledge.workspace.google.com/admin/domains/set-up-mx-records-for-google-workspace) knowledge.workspace.google.com · checked 2026-10-25

Questions

## Asked a lot.

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

_01_ What is in an MX record?

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

_02_ How 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.

_03_ What does MX record priority mean?

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

_04_ Do 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.

## Keep learning

[All glossary](/glossary)

[Learn TXT record Technical SEO](/glossary/txt-record) [Related A record (DNS address record) Crawling and indexing](/glossary/a-record) [Read next CDN Performance](/glossary/cdn) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Multimodal AI](/glossary/multimodal-ai) [Multivariate testing](/glossary/multivariate-testing) [NAP consistency](/glossary/nap-consistency) [Natural Language Processing](/glossary/natural-language-processing)

More in Technical SEO
[Content migration](/glossary/content-migration) [Hidden text](/glossary/hidden-text) [JSON Feed](/glossary/json-feed) [Mobile friendly](/glossary/mobile-friendly) [Mobile-first indexing](/glossary/mobile-first-indexing) [MX record (mail exchange)](/glossary/mx-record) [Rate limiting](/glossary/rate-limiting) [React SEO](/glossary/react-seo) [Security headers](/glossary/security-headers) [TXT record](/glossary/txt-record)

Terms on this page
[A record (DNS address record)](/glossary/a-record)

Free · 2 minutes

## Know the term. _Now check your site._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
