What are MX records?
MX (Mail Exchange) records tell the internet which servers handle email for your domain. When someone sends an email to user@yourdomain.com, their mail server looks up your MX records to find where to deliver the message.
Without MX records, email sent to your domain bounces.
How MX records work
An MX record has two parts:
yourdomain.com. MX 10 mx1.mailprovider.com.
yourdomain.com. MX 20 mx2.mailprovider.com.In this example, mail is delivered to mx1 first. If mx1 is unavailable, the sender tries mx2.
Setting up MX records
Step 1: Get your mail server addresses
Your email provider gives you the MX records to use. Common examples:
| Provider | MX Records |
|---|---|
| Google Workspace | aspmx.l.google.com (priority 1) |
| Microsoft 365 | yourdomain-com.mail.protection.outlook.com (priority 0) |
| Zoho Mail | mx.zoho.com (priority 10) |
Step 2: Add records at your DNS provider
Log into your DNS dashboard and add each MX record with its priority value. Remove any old MX records that point to previous providers.
Step 3: Verify delivery
Send a test email from an external account and confirm it arrives. Use an MX lookup tool to verify the records are published correctly.
Common mistakes
MX records and security
MX records interact with email authentication in important ways:
If your domain does not send or receive email, publish a null MX record:
yourdomain.com. MX 0 .This tells other mail servers to reject email destined for your domain immediately.
Key takeaways
Ready to check your domain?
A graded scan across six surfaces in about 2 minutes. Free, no signup required.
Free MX Lookup →