How to Fix Internal Email Routing to the Wrong Mailbox in Microsoft 365
Question details
Users need to correct their email routing settings because internal emails sent via cPanel are not reaching the correct external Microsoft 365 mailboxes.
- Product
- Microsoft 365 / cPanel
- Device & OS
- not provided
- Scenario
- Sending an email from a cPanel webmail account to a custom domain address hosted on Microsoft 365.
- Observed behavior
- Emails stay in the hosting provider's local mailbox and never arrive in Microsoft 365, although external messages and Outlook work fine.
Ensure you have administrator access to your cPanel hosting account and your domain registrar to verify and modify DNS and mail routing settings.
Update cPanel Email Routing and MX Records
Change your cPanel configuration from local to remote mail delivery to force emails to route to Microsoft 365.
When your domain is hosted on a cPanel server, the server assumes it should handle all emails for that domain locally. By changing the routing to a Remote Mail Exchanger and ensuring the MX records point to Microsoft 365, the server will correctly forward internal emails to Exchange.
Log into your cPanel account, locate the 'Email' section, and click on 'Email Routing'.
Choose your custom domain from the dropdown menu, select 'Remote Mail Exchanger', and click 'Change' to apply the setting.
Navigate back to the cPanel dashboard and open 'Zone Editor'. Click 'Manage' next to your domain, filter by 'MX', and ensure the only MX record points to your Microsoft 365 address (e.g., yourdomain-com.mail.protection.outlook.com).

Reconfigure Microsoft 365 Account Settings
Clear conflicting custom domain aliases or local delivery setups within the Microsoft 365 Admin Center.
Simplify Your Workflow with WPS Office
While troubleshooting complex Microsoft 365 Exchange configurations, consider managing your documents with WPS Office. It provides a lightweight, hassle-free environment to create, edit, and share files without relying on extensive administrative setups.

Frequently Asked Questions
Why do external emails reach Microsoft 365, but cPanel webmail messages do not?
External emails check the global public DNS to find your Microsoft 365 MX records. However, cPanel defaults to internal delivery for its hosted domains. It attempts to deliver the message to the local server mailbox before ever checking the public internet unless configured as a 'Remote Mail Exchanger'.
Do I need to delete my old cPanel email accounts?
Yes, once you have successfully migrated your mailboxes to Microsoft 365 and backed up your old emails, deleting the local cPanel email accounts prevents the server from attempting to route messages to them internally.
What should the Microsoft 365 MX record look like?
Your Microsoft 365 MX record typically follows the format 'yourdomain-com.mail.protection.outlook.com' with a priority of 0. You can find the exact value in your Microsoft 365 Admin Center under Settings > Domains.




