Email routing and MX records in cPanel
Configure cPanel Email Routing and MX records for local mail, Google Workspace, Microsoft 365, or another remote email provider without breaking delivery.
On this page
Email Routing tells cPanel whether mail for your domain should be delivered locally on the hosting server or sent to an external mail provider. MX records tell the internet which mail servers receive mail for your domain. Both must agree.
Email routing modes
| Mode | Use when |
|---|---|
| Automatically Detect Configuration | You want cPanel to decide from the MX records. |
| Local Mail Exchanger | Email is hosted in this cPanel account. |
| Remote Mail Exchanger | Email is hosted at Google Workspace, Microsoft 365, or another provider. |
| Backup Mail Exchanger | This server should queue mail for another primary mail server. |
- Open Email and choose Email Routing.
- Select the domain.
- Choose the correct routing mode.
- Click Change.
Edit MX records
MX records must point to hostnames, not raw IP addresses. You can edit them from Zone Editor or the cPanel email routing/MX interface when available.
- Open Domains and choose Zone Editor.
- Click Manage beside the domain.
- Filter by MX.
- Add, edit, or remove MX records according to your mail provider's instructions.
Using external mail providers
If you use Google Workspace, Microsoft 365, Proton Mail, Zoho, or another provider:
- Set the provider's MX records exactly as instructed.
- Set cPanel Email Routing to Remote Mail Exchanger.
- Do not create local cPanel mailboxes expecting them to receive mail.
- Update SPF, DKIM, and DMARC for the external provider.
Troubleshooting
- Local mailboxes do not receive mail: make sure routing is Local if MX points to this server.
- Google/Microsoft mail not receiving: routing should be Remote and MX records should match the provider.
- Mail goes to old server: DNS propagation or stale MX records may still be in effect.
- Unsure: use an external MX lookup and compare it with the DNS zone in cPanel.
Related: SPF, DKIM, and DMARC in cPanel-email authentication | Managing DNS records with cPanel Zone Editor | How to configure DNS for your domain | DNS record types explained-A, CNAME, MX, TXT, and more
Need cPanel hosting or licensing?
Use UnderHost cPanel hosting or add cPanel/WHM to a VPS or dedicated server for familiar website, email, DNS, and database management.





















