What Is MX Hosting?
MX Hosting (Mail Exchange Hosting) is a DNS service that manages email routing for your domain. It ensures that emails sent to your domain (e.g., you@yourdomain.com) are correctly delivered to the right mail server.
How MX Hosting Works
- A sender emails you at
you@yourdomain.com. - The sender's email server looks up your domain's MX (Mail Exchange) records.
- The MX record points to your email provider's mail server.
- The email is delivered to your inbox.
If MX records are missing or misconfigured, email delivery will fail.
How to Set Up and Use MX Hosting
To configure MX Hosting, you must set up MX records in your DNS settings.
> Quick Start Guide
- Identify your email provider (Google Workspace, Microsoft 365, etc.)
- Find the correct MX records from your provider
- Add these records to your domain's DNS
- Verify the configuration
- Test email delivery
Find Your Email Provider's MX Records
Different email providers require different MX records.
Common MX Records for Popular Email Hosts
| Email Provider | MX Record | Priority |
|---|---|---|
| Google Workspace (Gmail) | ASPMX.L.GOOGLE.COM |
1 |
ALT1.ASPMX.L.GOOGLE.COM |
5 | |
ALT2.ASPMX.L.GOOGLE.COM |
5 | |
ALT3.ASPMX.L.GOOGLE.COM |
10 | |
| Microsoft 365 (Outlook) | MX1.MAIL.OUTLOOK.COM |
0 |
| Zoho Mail | mx.zoho.com |
10 |
| ProtonMail | mail.protonmail.ch |
10 |
Find your provider's MX records on their official support page.
Add MX Records to Your DNS
Once you have the correct MX records, add them to your domain's DNS settings.
For cPanel Users
- Log in to cPanel.
- Go to "Zone Editor" or "MX Entry".
- Click "Add Record".
- Enter the MX record details (priority, mail server).
- Click Save.
For Cloudflare Users
- Log in to Cloudflare.
- Go to DNS Management.
- Click "Add Record".
- Choose MX Record.
- Enter the mail server (e.g.,
ASPMX.L.GOOGLE.COM) and priority. - Save the changes.
Your email hosting is now set up. Changes may take up to 24 hours to propagate.
Verify MX Record Setup
After updating MX records, check if they are correctly configured.
Using Online Tools
- MXToolbox – Enter your domain to check MX records.
- Google Admin Toolbox – For Google email users.
Using Command Line
dig MX yourdomain.com +short
Expected Output (for Gmail MX Records):
1 ASPMX.L.GOOGLE.COM.
5 ALT1.ASPMX.L.GOOGLE.COM.
5 ALT2.ASPMX.L.GOOGLE.COM.
10 ALT3.ASPMX.L.GOOGLE.COM.
Troubleshooting MX Hosting Issues
| Issue | Possible Cause | Fix |
|---|---|---|
| Emails not being received | Missing or incorrect MX records | Use correct provider MX records |
| Emails going to spam | No SPF, DKIM, DMARC records | Configure email authentication |
| Email sending works, but receiving doesn't | Incorrect priority order | Ensure lowest number MX has the highest priority |
Test email delivery after fixing MX records.
Summary
| Task | Steps |
|---|---|
| Find email provider's MX records | Check Google, Outlook, Zoho, etc. |
| Add MX records to DNS | Use cPanel, Cloudflare, or registrar's DNS |
| Verify MX setup | Use dig MX yourdomain.com or MXToolbox |
| Troubleshoot issues | Ensure correct MX, add SPF/DKIM/DMARC |
Now your MX Hosting is correctly set up, and email routing is working!


