How to Migrate cPanel Email to Microsoft 365 Without Losing Mail
A safer cPanel-to-Microsoft 365 migration runbook covering inventory, pilot, IMAP sync, verification, MX cutover, incremental sync, reconciliation, and rollback.

You can migrate email from cPanel to Microsoft 365 with minimal risk of mail loss if you do not change MX first. The safer pattern is to provision Microsoft 365 mailboxes, run an initial IMAP synchronization while cPanel is still receiving mail, verify the destination, and only then change MX so new mail begins flowing to Exchange Online. Keep the cPanel source and migration batch available during the transition so incremental synchronization can capture messages that arrived at the old system before or during DNS propagation. Reconcile the mailboxes before retiring the source.
In practice, use this sequence: inventory → pilot → initial IMAP sync → verify → MX cutover → incremental sync → reconciliation → retire cPanel. This guide specifically targets organizations moving standard IMAP mailboxes hosted on cPanel to Exchange Online, rather than covering every type of enterprise messaging migration.
Preparation
Do not start by changing DNS
A no-surprises migration begins by identifying exactly what will move and what else depends on the domain.
Build an inventory of every domain and mailbox: primary addresses, aliases, forwarders, used storage, IMAP folders, shared addresses, catch-all behavior if present, SMTP-sending applications, and devices currently connecting to cPanel. Capture the existing MX, SPF, DKIM, DMARC, and Autodiscover records so you have a recovery baseline.
Add and verify the domain in Microsoft 365, but do not switch MX yet. Provision destination users/mailboxes and assign the appropriate licenses before migration. Microsoft requires the cloud mailboxes to exist before an IMAP migration. On cPanel, obtain the actual IMAP hostname from . cPanel recommends secure SSL/TLS connectivity and currently documents port 993 for IMAP over SSL/TLS.




