DNS security

What Is an MX Record? (Email Routing Explained)

By Kalenfy · Updated 27 June 2026 · 5 min read

What Is an MX Record? (Email Routing Explained)

TL;DR: An MX (Mail eXchange) record is a DNS record that tells other mail servers where to deliver email for your domain. Each MX has a priority number — lower is tried first. No MX (or a wrong one) means inbound mail bounces. Scan your domain free to confirm your MX and email security are set up right.

How MX records work

When someone emails [email protected], the sending server looks up your domain's MX records to find your mail host (for example aspmx.l.google.com for Google Workspace). It then delivers the message there. Your MX records point at your mail provider, which is often different from where your website is hosted.

MX priority explained

Each MX record has a preference number:

yourdomain.com.  MX  10 mail1.provider.com.
yourdomain.com.  MX  20 mail2.provider.com.

Lower numbers are tried first. So 10 is the primary; 20 is a backup used only if the primary is unreachable. Equal numbers share the load.

Common MX mistakes

MX and your email security

MX gets your mail delivered, but it doesn't protect it — that's the job of SPF, DKIM and DMARC, plus MTA-STS for encrypted inbound transport. A complete setup needs both correct routing and authentication.

FAQ

How many MX records should I have?

As many as your provider lists — usually two to five, with priorities. Use exactly what your mail host documents.

Does changing MX cause downtime?

If done carefully, no. Add the new provider's MX before removing the old, and watch the TTL during the switch.

Can I check my MX records myself?

Yes — or scan your domain and we'll confirm your MX along with your email-security records.

Mail bouncing or not sure your routing is right? Scan your domain, then reply to your report — we're developers and we'll sort out your MX and authentication for you.

Check your own domain — free

Kalenfy runs a passive scan of your SPF, DKIM, DMARC, DNSSEC, CAA and more, then gives you a downloadable PDF report with exact fixes. You see your grade first — no email needed to view it.

Scan my site free

Related guides