Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

cPanel to Office 365 Email Migration: How-To

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Migrating email from cPanel to Office 365 means moving each mailbox's existing messages, folders and contacts into Microsoft 365, then repointing your domain's mail routing so new mail lands in Exchange Online. The cleanest way is to create the mailboxes in Microsoft 365 first, use a migration tool or IMAP migration to copy the old data, verify everything, and only then switch the MX records. You will need admin access to both the cPanel account (or the ability to create email accounts and get their passwords) and the Microsoft 365 admin center, plus the domain's DNS controls. Plan for a short window where you freeze old mail or accept that a final delta sync will be needed.

What You'll Need

  • Microsoft 365 admin credentials with permission to add users and run migrations.
  • cPanel login (or WHM) to create or reset mailbox passwords and read mailbox settings.
  • The exact list of mailboxes and aliases, with current passwords. If you do not know a password, reset it in cPanel before migrating.
  • Access to the domain's DNS zone, either in cPanel or at your registrar.
  • The IMAP server hostname and port from cPanel (usually mail.yourdomain.com, port 993 with SSL).
  • A way to inform users: they will need to reconfigure Outlook, phones and any mail apps after the switch.

Step-by-Step

  1. Inventory the mailboxes. In cPanel, open Email Accounts and list every address, its quota and whether it is a forwarder, alias or autoresponder. Note shared or role addresses (sales@, support@) because these often need to become shared mailboxes or distribution groups in Microsoft 365, not ordinary users.
  2. Create the users in Microsoft 365. In the Microsoft 365 admin center, go to Users > Active users and add each person with the same primary address they use today. Assign a Microsoft 365 license that includes Exchange Online. For role addresses, create shared mailboxes under Teams & groups > Shared mailboxes, or distribution groups under Teams & groups > Distribution groups.
  3. Add and verify your domain. In the admin center, go to Settings > Domains, add your domain and place the TXT verification record in DNS. Do not change MX yet. Microsoft will warn you not to switch mail routing until migration is done, and that warning matters.
  4. Prepare cPanel for migration. Reset any mailbox passwords you do not have. Confirm IMAP is enabled and note the server hostname. If the host blocks IMAP from outside, ask them to allow the Microsoft 365 migration IPs or use a migration tool that connects from your side. Disable any aggressive spam filter that might reject the migration connection.
  5. Choose the migration method. For a handful of mailboxes, the Microsoft 365 admin center's IMAP migration (under Exchange admin center > Migration) can pull mail directly from cPanel. For larger or more complex moves, use a reputable migration tool that supports cPanel-to-Office 365. Both copy messages and folders; neither copies calendars or contacts reliably from cPanel, so export those separately from webmail or a mail client as .ics/.vcf files and import them into Outlook.
  6. Run a test migration on one mailbox. Migrate a single low-risk account first. Check that the folder structure, sent items, attachments and dates look right in Outlook on the web. Fix any errors before touching the rest.
  7. Migrate the remaining mailboxes. Start the batch and monitor it. Large mailboxes take time; run them in parallel only if your cPanel host allows it. Keep users working in their old mailboxes during this phase so nothing new is lost.
  8. Do a final sync and freeze old mail. When the bulk copy finishes, ask users to stop sending from the old account, run a final delta sync, and confirm the new mailbox has everything. This is the point of no return for mail routing.
  9. Switch DNS. In your DNS zone, replace the cPanel MX records with Microsoft's (the admin center shows the exact record under Settings > Domains > your domain > DNS records). Also update SPF to include Microsoft, and add the DKIM and DMARC records Microsoft provides. Keep the old records noted in case you need to roll back.
  10. Reconfigure clients. Have users sign in to Outlook with their Microsoft 365 account, or set up the account manually using outlook.office365.com. On phones, remove the old cPanel IMAP account and add the Microsoft 365 account. Autodiscover usually handles this once DNS has propagated.
  11. Verify and clean up. Send test mail in and out, check aliases and shared mailboxes, and confirm calendar and contacts came across. After a week of stable mail flow, remove the old cPanel mailboxes or keep them as an archive, and update any website contact forms or scripts that send through the old SMTP server.

Common Mistakes

Switching MX records before the data copy is finished is the most common failure; new mail arrives in Microsoft 365 while old mail is still being copied, and users see a half-empty inbox. Another is forgetting aliases and forwarders, so mail to sales@ or info@ bounces after the switch. Many people also assume cPanel calendars and contacts migrate with IMAP; they do not, so export them separately. Skipping SPF, DKIM and DMARC updates causes deliverability problems and spam filtering. Finally, leaving the old cPanel account active without forwarding means mail sent to the old address after the switch is lost.

Tips

Migrate during a quiet period and tell users in advance what will change. Keep the old cPanel mailboxes for at least a week as a read-only archive. Use a shared mailbox for role addresses instead of a licensed user, which keeps costs down and lets several people monitor it. Test with a single mailbox that has large attachments and many folders, because that exposes quota and timeout issues early. Document the DNS changes and keep the old values so you can roll back quickly if something breaks.

Troubleshooting

If migration fails with an authentication error, reset the cPanel mailbox password and re-enter it in the migration batch. If it times out, migrate in smaller batches or ask the host to allow the connection. If messages are missing, check whether the cPanel account used POP3 and deleted mail from the server; those messages may only exist on a local device. If new mail does not arrive after the DNS switch, check propagation and confirm the MX record points to Microsoft, not the old host. If Outlook keeps asking for a password, remove the old account profile and add it again with the Microsoft 365 credentials. If sent items are missing, verify the migration included the Sent folder and that the client is set to save sent mail on the server.

Frequently Asked Questions

Can I migrate cPanel email to Office 365 for free?

Microsoft 365 includes built-in IMAP migration for supported mailboxes at no extra cost, though third-party tools may charge. The built-in method is fine for straightforward mailboxes.

Will my old emails be deleted from cPanel?

No. Migration copies data; it does not delete the source. You can keep the old mailboxes as an archive and remove them later.

Do calendars and contacts migrate too?

IMAP migration covers mail only. Export calendars and contacts from cPanel webmail or a mail client and import them into Outlook separately.

How long does the migration take?

It depends on mailbox size and connection speed. Small mailboxes can finish in minutes; large ones may take hours. Run a test first to estimate.

Can I keep using the same email address?

Yes. You add the same domain to Microsoft 365 and create the same addresses, so users keep their existing email addresses.

What happens to mail sent during the switch?

Mail sent before the MX change goes to cPanel; after propagation it goes to Microsoft 365. A final sync before the switch catches anything left behind.