What Is an MX Record? Beginner Guide to Domain Email in 2026
If you use a custom domain email address, such as you@yourdomain.com, your domain needs the right DNS records for email to work properly. One of the most important records for email delivery is called an MX record.
MX records tell the internet where email for your domain should be delivered. Without the correct MX records, your website may still load normally, but your domain email may not receive messages.
In this beginner-friendly guide, we’ll explain what an MX record is, how it works, why it matters, and how to check your MX records in 2026.
What Is an MX Record?
MX stands for Mail Exchange.
An MX record is a DNS record that tells mail servers where to deliver email for a domain name.
For example, if someone sends an email to:
hello@yourdomain.com
The sender’s mail server looks up the MX records for yourdomain.com to find out which mail server should receive the message.
In simple terms, your MX record acts like a delivery address for your domain email.
Why MX Records Matter
MX records matter because they control incoming email delivery.
If your MX records are missing, incorrect, or pointed to the wrong mail provider, you may experience issues such as:
- Emails not arriving
- Messages bouncing back to the sender
- Domain email not working after changing hosting
- Email working on one provider but not another
- Problems after changing nameservers
- Confusion between website hosting and email hosting
Your website files and email service can be hosted in different places, but your DNS records need to point each service correctly.
How Does an MX Record Work?
When someone sends email to your domain, the sending mail server checks DNS for your domain’s MX records.
The MX record tells it which mail server should handle incoming email.
A basic MX record includes two important parts:
- Mail server hostname: the server that receives email
- Priority value: the order mail servers should be tried
An example MX record may look like this:
Priority: 10 Mail Server: mail.yourdomain.com
Your exact MX record depends on where your email is hosted.
MX Record Priority Explained
MX records use priority numbers to decide which mail server should be tried first.
Lower numbers usually have higher priority.
For example:
10 mail1.yourdomain.com 20 mail2.yourdomain.com
In this example, mail servers should try mail1.yourdomain.com first. If that server is unavailable, they may try mail2.yourdomain.com.
Some email providers use multiple MX records for reliability. Others may use one main MX record.
MX Records vs A Records
MX records and A records are both DNS records, but they do different things.
- A record: points a domain or subdomain to an IP address, usually for website traffic
- MX record: tells mail servers where to deliver email for the domain
This is why your website can work even if your email does not, and your email can work even if your website is hosted somewhere else.
If you are new to DNS, read our beginner guide on what DNS is in web hosting.
MX Records vs SPF, DKIM, and DMARC
MX records are related to email, but they are not the same as SPF, DKIM, or DMARC.
- MX record: controls where incoming email is delivered
- SPF: tells mail providers which servers can send email for your domain
- DKIM: adds a digital signature to outgoing email
- DMARC: tells providers what to do when authentication checks fail
MX records help your domain receive email. SPF, DKIM, and DMARC help protect and authenticate email.
To learn more about email authentication, read our guides on SPF records, DKIM records, and DMARC records.
Common MX Record Problems
MX record problems are common after changing hosting providers, switching email services, moving domains, or updating nameservers.
Common issues include:
- MX record points to the wrong mail server
- Old MX records were not removed
- New MX records were added at the wrong DNS provider
- DNS propagation is not finished
- Email routing is set incorrectly in cPanel
- The mail server hostname is typed incorrectly
- The domain has no MX records at all
Even a small typo in an MX record can stop email from being delivered correctly.
How to Check Your MX Records
The easiest way to check your MX records is to use an MX lookup tool.
You can use HostDroplet’s free tool here: MX Record Checker.
Enter your domain name, and the tool will check which MX records are currently visible for your domain.
This can help you confirm whether your domain is pointing to the correct mail provider.
MX Records and cPanel Email
If you use cPanel email through your hosting account, your MX record usually points to your hosting mail server.
In many cases, this may look like:
mail.yourdomain.com
or another mail server hostname provided by your host.
If you are creating domain email inside cPanel, this guide can help: How to Create an Email Account in cPanel.
If your mailbox is full, email may still fail even if your MX records are correct. For that issue, see How to Fix Email Account Storage Full in cPanel.
MX Records After Changing Nameservers
If you recently changed nameservers, your DNS zone may have changed too.
This means your old MX records may no longer be active unless they were copied to the new DNS provider.
After changing nameservers, always check that your new DNS zone includes the correct email records.
This may include:
- MX records
- SPF record
- DKIM record
- DMARC record
- Mail-related A records or CNAME records if needed
If email stopped working after changing nameservers, this support guide may help: How to Fix DNS Propagation Issues After Changing Nameservers.
How Long Do MX Record Changes Take?
MX record changes do not always update instantly.
DNS changes can take time to propagate across different networks and mail providers. Some users may see the new records quickly, while others may still see old records for a while.
If you just changed your MX records, wait for propagation and test again later.
You can also use DNS tools to check whether the updated records are visible from different locations.
What Happens If You Have No MX Record?
If your domain has no MX record, incoming email may fail.
Some mail servers may try fallback methods, but you should not rely on that. A proper MX record is the standard way to tell the internet where your domain email should be delivered.
If your domain email matters for business, support, invoices, contact forms, or client communication, your MX records should be checked and configured correctly.
Do Small Websites Need MX Records?
Yes, if they use custom domain email.
You need MX records if you want to receive email at addresses like:
- info@yourdomain.com
- support@yourdomain.com
- hello@yourdomain.com
- sales@yourdomain.com
If your website only exists as a landing page and does not use domain email, MX records may not matter as much. But for most small businesses, domain email is important for trust and professionalism.
MX Records and WordPress Contact Forms
MX records mainly control incoming email, but they can still matter when troubleshooting contact form issues.
If your WordPress contact form sends notifications to a domain email address, that mailbox needs working MX records so messages can arrive.
If your WordPress contact form is not sending emails, this guide may help: How to Fix WordPress Contact Form Not Sending Emails.
Choosing Hosting With Email Support
Email setup is easier when your hosting provider supports cPanel email tools, DNS records, SSL, and beginner-friendly support.
If you want hosting that includes cPanel tools for websites and domain email, you can explore HostDroplet shared hosting plans.
Final Thoughts
An MX record is one of the most important DNS records for domain email.
It tells mail servers where to deliver messages for your domain. If your MX records are wrong, your website may still work, but your email may fail.
If you use custom domain email in 2026, make sure your MX records are correct, your DNS provider is updated, and your email authentication records are also configured properly.
Start by checking your MX records with an MX record checker, then review your email provider settings if anything looks incorrect.
Frequently Asked Questions
What is an MX record?
An MX record is a DNS record that tells mail servers where to deliver email for your domain.
Do I need an MX record for my website?
You need an MX record if you want to receive email using your domain name, such as info@yourdomain.com.
Can my website work if my MX record is wrong?
Yes. Website records and email records are separate. Your website can load normally even if your email records are incorrect.
How do I check my MX records?
You can use an MX record checker tool to scan your domain and see which mail servers are listed.
Are MX records the same as SPF records?
No. MX records control incoming email delivery, while SPF records help authorize which servers can send email for your domain.
