Skip to content

What is an MX record?

By Ash, Founder, HosteazePublished 1 min read

An MX (mail exchange) record is a DNS setting that tells the internet which mail server receives email for your domain. Each record has a priority number and a server name, and senders try the lowest number first. If your MX records are missing or wrong, email sent to your domain can't be delivered.

Three wall-mounted letterboxes in black, green and red, each one a different place post can be delivered
Credit: stux via Pixabay

When someone emails hello@yourbusiness.co.uk, their mail server has one question: where do I take this? The MX record is the answer. It's the forwarding address for your domain's post, and it lives in your DNS alongside the records for your website.

What does an MX record look like?

Here's Google's own, which we looked up in October 2026:

google.com.   MX   10 smtp.google.com.
PartMeaning
google.com.The domain receiving the email. In most DNS panels you enter this as @.
10The priority. Lower numbers are tried first.
smtp.google.com.The mail server that accepts the email.

A domain with a backup server might have two records, 10 mail1.example.com and 20 mail2.example.com. Senders try mail1 first and only use mail2 if it doesn't respond. Two records with the same number share the load.

When do I need to change my MX records?

When you move your email to a different provider, such as switching to Google Workspace or Microsoft 365. Your new provider gives you the exact values. Remove the old MX records when you add the new ones, or some email will keep going to the old provider.

Changing MX records doesn't move your old emails, it only changes where new ones arrive. Changes usually take effect within an hour, but can take longer; see how long DNS propagation takes.

What are the common MX mistakes?

MX records decide where your email arrives. Whether your outgoing email is trusted is a different job, handled by SPF and DKIM.

Frequently asked questions

Can a domain have more than one MX record?

Yes, and most do. Senders try the lowest priority number first and move to the next if that server doesn't answer.

Can an MX record point to an IP address?

No. It must point to a hostname, such as mail.example.com, which in turn has an A or AAAA record. It also shouldn't point to a CNAME.

Do MX records affect my website?

No. MX records only handle incoming email. Your website uses A and CNAME records, so you can host your site and your email with different companies.

Sources

  1. RFC 5321, Simple Mail Transfer Protocol (section 5, address resolution)
  2. RFC 2181, Clarifications to the DNS Specification (section 10.3)
  3. Google Workspace, Set up MX records
Traffic light showing a red stop signal under a blue bicycle signalQuestionDMARC p=none vs quarantine vs reject, which should I use?p=none tells receivers to deliver failing email as normal and just send you reports. p=quarantine sends failing email to spam. p=reject blocks it completely. Start at none, read the reports until every service you use passes, then move to quarantine and finally reject. Skipping straight to reject can block your own invoices.Email and domains · 12 October 2026Magnifying glass and pen resting on printed spreadsheets, ready to check the detailsQuestionHow do I check if my domain has DMARC?Look up the TXT record at _dmarc.yourdomain.com. The quickest way is the free Google Admin Toolbox Dig tool. Enter _dmarc followed by your domain, choose TXT, and look for a value starting v=DMARC1. If nothing comes back, your domain has no DMARC record and you should add one.Email and domains · 12 October 2026Open red mailbox with a stream of envelopes flying away from it, like email going astrayQuestionWhy are my emails going to spam?The most common reason is missing or broken email authentication. If your domain has no SPF, DKIM or DMARC records, Gmail and Outlook can't prove the email is really from you. After that come a poor sender reputation, a shared server with a bad history, and messages that look like marketing. Check authentication first.Email and domains · 12 October 2026Hands typing on a keyboard as email envelopes fly outTutorialHow to set up SPF, DKIM and DMARC for your business emailAdd three DNS records in this order. First an SPF record listing who can send email for your domain, then a DKIM record your email provider generates, then, about 48 hours later, a DMARC record starting at p=none. Watch the DMARC reports for a few weeks before tightening the policy to quarantine.Email and domains · 11 October 2026

Want email on your own domain?

Hosteaze hosting plans let you set up mailboxes on your own domain. See what each plan includes.

See hosting plans