Glossary · DNS records
What is an MX record?
The short answer
An MX record is a line in your domain's DNS settings that says which mail server receives email for that domain. When someone emails you@example.com, their mail server looks up the MX record for example.com to find out where to deliver the message.
Also called: mail exchange record, mail exchanger record, MX DNS record
By Ali Tahir Sajjad · Updated · 4 min read
MX record: what to remember
- MX stands for mail exchange. An MX record points your domain to the server that receives its email.
- Without an MX record, nobody can email you: their messages bounce.
- Each MX record has a priority number. The lowest number is tried first.
- MX records are for receiving email. Sending is checked by other records: SPF, DKIM and DMARC.
What does MX record mean?
MX stands for mail exchange. An MX record is a short line in your domain’s settings that answers one question:
“Where should email for this domain be delivered?”
Think of your domain as a company building. People know the name of the company, but the postman needs to know which door the mail room is behind. The MX record is the sign that says “mail room this way”.
Every domain that receives email has at least one MX record. It lives in the domain’s DNS, which is the public list of settings for that domain.
How an MX record works
Say someone sends an email to maria@example.org.
- The sender’s mail server looks at the part after the @ sign:
example.org. - It asks DNS, what is the MX record for
example.org? - DNS answers with the name of a mail server, for example
smtp.google.com. - The sender’s mail server connects to that server and hands over the email.
- Maria’s email app then shows the message, using IMAP to read it from the server.
All of this takes about a second, and it happens for every email ever sent.
MX record examples
An MX record has three main parts: the domain it is for, a priority number and the mail server.
MX record for Google Workspace
| Name | Type | Priority | Value |
|---|---|---|---|
@ |
MX | 1 | smtp.google.com |
MX record for Microsoft 365
| Name | Type | Priority | Value |
|---|---|---|---|
@ |
MX | 0 | example-com.mail.protection.outlook.com |
The @ sign means “this domain itself”. For Microsoft 365, the value is your own domain with the dots turned into dashes, so example.com becomes example-com.
What is MX record priority?
A domain can have more than one MX record. The priority number decides the order.
- The lowest number is tried first.
- If that server does not answer, the next lowest is tried.
It is like having a main phone number and a backup number. Most small setups today have just one MX record, and that is fine.
Why MX records matter for cold email
MX records are about receiving, so it is easy to think they do not matter when you are sending. They do, for three reasons.
- Replies need somewhere to go. The whole point of cold email is to get a reply. With no MX record, or a wrong one, replies bounce and you never see them.
- Inbox providers check it. Gmail and Outlook are suspicious of email from a domain that cannot receive email. A missing MX record makes your sending domain look fake.
- Warmup needs it. Warmup works by sending emails to your inbox and replying to them. That only works if your inbox can receive.
MX is one of four records every cold email domain needs. The other three are SPF, DKIM and DMARC. Together, the four are the base of your cold email infrastructure.
When you order inboxes from PureMail, our team adds the MX record and the other three records to each of your domains for you, for both Google Workspace inboxes and Microsoft 365 inboxes.
How to check an MX record (MX lookup)
An MX lookup shows you the MX record a domain has right now.
- Open a free MX lookup tool, such as MXToolbox.
- Type in the domain, without anything in front of it.
- Read the result: you should see the mail server name and its priority.
If the MX lookup comes back empty, the domain has no MX record and cannot receive email. If it shows a server you do not recognise, an old MX record was probably left behind.
Common MX record mistakes
- Leaving the old MX record in place. If you move from one email provider to another and keep both MX records, some emails go to the old provider and seem to vanish.
- Pointing the MX record at an IP address. An MX record must point to a server name, such as
smtp.google.com, not to a number like203.0.113.10. - A typo in the server name. One wrong letter and your email cannot be delivered.
- Expecting it to work instantly. A new MX record can take anywhere from a few minutes to a day to be seen everywhere.
- Confusing MX with SPF. The MX record is for incoming email. It does not give anyone permission to send email as your domain. Our guide to SPF, DKIM and DMARC covers the records that do.