To receive emails at an address like [email protected], you need to configure the MX records for your domain. These records tell the internet which servers should handle incoming mail for your domain.
This guide covers exactly how to do it: what MX records are, where to edit them, and the specific values you need for the most popular email providers.
What Is an MX Record and What Does It Do?
An MX (Mail Exchanger) record is a DNS entry that specifies the mail server responsible for receiving email for your domain. Without it, messages sent to your address simply go nowhere.
Each MX record has two key values:
- Priority: a number — the lower the number, the higher the priority. If the primary server is unavailable, mail falls over to the next one.
- Mail server (destination): the hostname of the server that receives mail, for example
aspmx.l.google.com.
You can — and usually should — have multiple MX records for redundancy. This is standard practice that ensures mail delivery even if a primary server goes down.
Where to Edit MX Records
MX records live wherever your domain's nameservers (NS) are pointed. There are two common scenarios:
- Registrar's nameservers: if you're using the DNS provided by where you registered the domain (GoDaddy, Namecheap, Neubox, etc.), you edit records there.
- Hosting nameservers: if you pointed your domain to your hosting provider (like cPanel), your DNS zone lives there — that's where you make the change.
The golden rule: go to the panel that controls your current nameservers. Not sure which that is? Check the domains section of the blog for a guide, or run dig NS yourdomain.com from a terminal.
Step by Step: Configuring MX Records
1. Open the DNS zone for your domain
Log into the panel that controls your nameservers. In cPanel, look for Zone Editor. In a registrar's panel, look for "DNS Management" or similar.
2. Delete any existing MX records
Before adding new MX records, remove any old ones. Leaving old and new records mixed together can cause mail to reach the wrong server or get rejected.
3. Add the new MX records
Enter each MX record provided by your email provider. Here are the values for the most widely used services:
| Provider | Priority | Mail server (destination) |
|---|---|---|
| Google Workspace | 1 | aspmx.l.google.com |
| Google Workspace | 5 | alt1.aspmx.l.google.com |
| Google Workspace | 5 | alt2.aspmx.l.google.com |
| Zoho Mail | 10 | mx.zoho.com |
| Zoho Mail | 20 | mx2.zoho.com |
| Zoho Mail | 50 | mx3.zoho.com |
| Microsoft 365 | 0 | yourdomain-com.mail.protection.outlook.com |
| cPanel / Titan | 0 | mail.yourdomain.com |
Note: For Microsoft 365, the destination includes your own domain name. You'll get the exact value from the Microsoft setup wizard inside your account.
4. Save and wait for propagation
After saving, DNS changes can take anywhere from 30 minutes to 48 hours to propagate globally. In practice, most modern resolvers pick up the change within 1–4 hours. You can track progress with tools like MXToolbox or dig MX yourdomain.com.
Additional Records to Configure Alongside MX
MX records handle incoming mail, but to keep your outgoing messages out of spam folders you also need:
- SPF (TXT): declares which servers are authorized to send mail for your domain. Example for Google:
v=spf1 include:_spf.google.com ~all - DKIM: a cryptographic signature that proves the message really came from your server. Your provider will give you the TXT record to add.
- DMARC: a policy that tells receiving servers what to do when SPF or DKIM fails. A safe starting value:
v=DMARC1; p=none; rua=mailto:[email protected]
These three records form the standard email authentication bundle. Skip them and Gmail, Outlook, and others will increasingly route your mail to spam or reject it outright. Need help setting all of this up? The team at elenlace.com handles full professional email setup including SPF, DKIM, and DMARC.
Common MX Record Mistakes to Avoid
Missing the trailing dot on the hostname
Some DNS panels require the MX destination to end with a period (aspmx.l.google.com.). If the panel expects it and you omit it, the record may be malformed. Check your panel's documentation.
Mixing records from multiple providers
When migrating to a new email provider, delete all MX records from the old provider first. Mixed entries cause unpredictable behavior — some mail gets through, some doesn't.
Canceling the old service before propagation is complete
Wait for full propagation before closing your old email account. Otherwise you'll lose messages sent during the transition window.
High TTL when you're planning a change
If you know you'll be switching email providers soon, lower the TTL on your MX records to 300–600 seconds a few days in advance. The changeover will then propagate in minutes rather than hours.
Key Takeaways
- MX records define which server receives email for your domain — without them, no messages arrive.
- Edit MX records in the panel that controls your domain's current nameservers, which may not be where you registered it.
- Always delete old MX records before adding new ones to avoid routing conflicts.
- Add SPF, DKIM, and DMARC alongside your MX records so outgoing mail lands in the inbox, not spam.
- Propagation typically takes 1–4 hours; allow up to 48 hours before troubleshooting.
- Lower your TTL a few days before a planned provider switch for near-instant changeover.
Would you rather have it done right the first time? Reach out to elenlace.com and we'll configure your full professional email setup — MX records, SPF, DKIM, and DMARC included — so your domain is ready in hours.
FAQ
How long does it take for email to work after changing MX records?
Usually between 1 and 4 hours, though the DNS standard allows up to 48 hours. If mail still isn't arriving after that, double-check your records are saved correctly using MXToolbox or dig MX yourdomain.com.
Can I have more than one MX record at a time?
Yes, and it's recommended. Multiple MX records with different priority values provide redundancy: if the primary server is unreachable, mail automatically falls over to the next one.
Do MX records affect mail I send, or only mail I receive?
MX records only control inbound mail routing. To keep mail you send from landing in spam, you need to configure SPF, DKIM, and DMARC records separately.
Do I need to change MX records when switching hosting providers?
Not if your email provider stays the same. Hosting and email are independent services. If your mail runs on Google Workspace and you switch web hosts, your MX records don't need to change at all.
Compare providers
Other providers and guides worth comparing: