Websites and Tech

MX Record

Also called Mail exchanger record

The DNS record telling the rest of the internet which server should receive email addressed to your domain.

Quick facts: MX Record

Category
Websites and Tech
Also called
Mail exchanger record
Level
Intermediate
Affects
Email delivery, enquiry receipt, provider migrations
Where to see it
Your DNS control panel, MX lookup tools, your email provider's setup guide
In this article4
  1. How an MX record works
  2. Why MX records matter
  3. Common mistakes with MX records
  4. Getting mail routing right

How an MX record works

An MX record — mail exchanger — tells every other mail server on the internet where to deliver messages addressed to your domain. When somebody writes to you, their provider looks up the MX records published on your name and connects to the host listed there. Your website’s address plays no part in this. Mail and web are routed by separate records, which is exactly why one can be working perfectly while the other is dead.

A domain normally publishes more than one MX record, each carrying a preference value. The host with the lowest value is tried first and the rest act as fallbacks if it does not answer. Email providers publish the precise set of records they expect, and the rule is to use theirs in full rather than blending entries from two providers and hoping the priorities sort it out.

Why MX records matter

Email is where enquiries, quotes, invoices, password resets and platform verification codes arrive. A wrong MX record does not announce itself to you: the sender receives the failure, or nothing fails at all and the message simply lands somewhere you never look. Most businesses find out days later, when a customer mentions they wrote and heard nothing back.

They sit alongside the records that protect your sending. Receiving is the MX record’s job; proving that mail claiming to come from you is genuine is handled by TXT records holding SPF, DKIM and DMARC. Both sets live in the same zone and both are lost in the same careless edit, which is why email deliverability problems so often begin in DNS rather than in the campaign itself.

Common mistakes with MX records

The most damaging is a website move. Somebody repoints the nameservers to a new host, the new host generates a default zone containing its own mail records, and company email stops the moment the change spreads. The website looks fine and loads faster than before, so nobody connects the outage to the migration for hours.

The second is leaving a previous provider’s records in place beside a new provider’s. Mail then arrives at whichever server answered, so messages land in two different mailboxes at random and half the team quietly believes the other half is ignoring customers. The third is editing mail routing on a Friday, which turns a small mistake into a weekend of silence.

Getting mail routing right

Copy your provider’s records exactly and completely, then delete anything left by an old provider or created automatically by a host. Before changing nameservers, write the current mail records down and re-create them at the new provider before the switch rather than after it. Once the change is live, send a message from an outside address, then reply to it, because receiving and sending fail independently of each other.

Keep at least one working mailbox on a different domain, and use that address on your registrar and DNS accounts. Being locked out of the account you need in order to repair your mail, because the recovery email is on the domain whose mail is broken, is an avoidable afternoon.

Do and do not

Do

  • Use the full record set your provider publishes
  • Note current records before changing nameservers
  • Test receiving and replying after every change

Do not

  • Mix records from two email providers together
  • Assume a new host's default zone keeps your mail
  • Use an address on this domain for registrar recovery

Questions people ask about this

Can my website be with one company and my email with another?

Yes, and it is very common. The website is reached through the address records in your zone while mail follows the MX records, so the two can point at completely different providers. What matters is that both sets of records live in whichever zone your nameservers are currently pointing at, and that nobody overwrites one while editing the other.

Why did my email stop working after I moved my website?

Almost certainly because the nameservers were changed and the new host created a fresh zone containing its own default mail records. Your real mail routing was left behind at the old provider. The fix is to re-enter the MX records your email provider publishes, then test by sending a message in from an outside address.

Do MX records decide whether my campaigns reach the inbox?

Not directly. They control where mail sent to you is delivered, not how mail from you is judged. Inbox placement depends on authentication records, your sending reputation, list quality and the content itself. Both live in the same DNS zone, though, so an edit that damages one often damages the other at the same time.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.