Switching providers
Migrate email from cPanel hosting to Microsoft 365
Leaving shared hosting mail for Exchange Online is mostly DNS work, and cPanel hides two traps: its own autodiscover records and its Email Routing setting. We copy every mailbox; here’s how to get the DNS right.
From
cPanel
mail.yourdomain.com
To
Microsoft 365
cPanel: what to prepare
Connect to the host with mail.yourdomain.com (or the server name from your welcome email), port 993, the full address and the mailbox password from cPanel’s Email Accounts. Start before any DNS change so the old server is recorded.
cPanel can serve automatic client configuration for your domain through autodiscover and autoconfig records. If those still point to the host after the switch, Outlook may keep trying to set itself up against the old server.
cPanel server
| IMAP server | Port | Security |
|---|---|---|
mail.yourdomain.com | 993 | SSL/TLS |
imap.yourdomain.com | 993 | SSL/TLS |
Username: your full email address
Microsoft 365: what to prepare
Add the domain in the Microsoft 365 admin center, verify it with the TXT record, and assign each user a licence with Exchange Online. The records go in cPanel’s Zone Editor if the host runs your DNS, otherwise at your registrar.
Set the MX shown in the admin center (usually yourdomain-com.mail.protection.outlook.com), replace any existing autodiscover record with a CNAME to autodiscover.outlook.com, and add include:spf.protection.outlook.com to the SPF. Finally set cPanel’s Email Routing to Remote Mail Exchanger.
Sign in with your Microsoft account
The switch, in order
Verify the domain in the Microsoft 365 admin center and assign the licences.
Create the migration in Migrabox, connecting Microsoft 365 with Sign in with Microsoft.
After the first copy, change the MX, autodiscover and SPF records.
Set Email Routing to Remote Mail Exchanger in cPanel.
Press “Update now” when mail reaches Outlook, then retire the cPanel mailboxes.
What isn’t copied
- Contacts, calendars, notes and tasks: export them from the old service separately if you need them.
- Filters and rules, signatures and auto-replies: set them up again in the new mailbox.
Questions about this switch
Outlook still offers the old server settings. Why?
An old autodiscover record is still answering. Check the zone for autodiscover entries left by cPanel and make sure only the CNAME to autodiscover.outlook.com remains.
Do I need a paid plan?
Yes. Microsoft 365 accepts only Sign in with Microsoft over IMAP, so a paid plan is required: a one-off price from $4.99, depending on mailbox size.
Can I keep the website on the cPanel host?
Yes. Only the mail records change; the website’s records stay as they are.
Ready to move your mail?
We sign in to both mailboxes and measure yours before you pay. Free up to 3 GB, then a one-off price from $4.99.