IN 30 SECONDSFull read: 2 min
- IMAP migration moves email only: contacts, calendars, rules and permissions stay behind.
- Create mailboxes and verify the domain first, but don't touch MX until the sync is done.
- Keep cPanel mail running for 7 to 14 days after cutover as a fallback.
This guide is written for IT administrators and technical users who want to migrate email from an IMAP-based system to Microsoft 365 themselves. We use cPanel-hosted email as the reference platform, but the same process applies to most IMAP providers.
How IMAP Migration Works (At a High Level)#
- Prepare Microsoft 365
- Verify Domain
- Prepare IMAP Access
- Run Migration Batch
- Cut Over DNS
Important IMAP Migration Limits (Read This First)#
| Limitation | MICROSOFT IMAP BEHAVIOR |
|---|---|
| Calendar, contacts, tasks | Not migrated |
| Email rules & permissions | Not migrated |
| Maximum items per mailbox | 500,000 items |
| Maximum message size | 35 MB |
| Archive / MRM policies | May cause “missing items” reports |
Calendar, contacts, tasks
- Microsoft IMAP Behavior
- Not migrated
Email rules & permissions
- Microsoft IMAP Behavior
- Not migrated
Maximum items per mailbox
- Microsoft IMAP Behavior
- 500,000 items
Maximum message size
- Microsoft IMAP Behavior
- 35 MB
Archive / MRM policies
- Microsoft IMAP Behavior
- May cause “missing items” reports
Phase 1: Microsoft 365 Preparation#
Create Tenant, Users, and Licenses#
- Create your Microsoft 365 tenant
- Add users and assign Exchange Online licenses
- Create shared mailboxes separately
Mailboxes must exist in Microsoft 365 before IMAP migration can start.
Phase 2: Domain Verification (No MX Change Yet)#
Verify domain ownership using the TXT record provided by Microsoft.
Phase 3: Prepare cPanel IMAP Access#
Mailbox Authentication Options#
- Option A: Use existing mailbox passwords (least disruptive)
- Option B: Reset all mailboxes to a temporary password
cPanel IMAP Settings#
- IMAP server: mail.yourdomain.com
- Port: 993
- Encryption: SSL/TLS
Phase 4: Execute the IMAP Migration#
Create Migration CSV#
EmailAddress,UserName,Password
user@company.com,user@company.com,Password123Create Migration Endpoint#
In Exchange Admin Center:
- Go to Migration → Migration endpoints
- Create new IMAP endpoint
- Enter cPanel IMAP server details
- Test connection
Create and Run Migration Batch#
- Upload CSV
- Name the batch clearly
- Start migration
Mail continues to arrive at cPanel during synchronization.
Phase 5: DNS Cutover & Finalization#
- Verify all mailboxes show Synced or Completed
- Update MX to Microsoft 365
- Add SPF, DKIM, and DMARC records
- Allow final sync
- Complete migration batch
When IMAP Migration Is NOT the Right Tool#
- Large mailboxes with heavy archives
- Complex shared permissions
- Strict compliance environments
- Need for calendar and contact preservation
In these cases, third-party tools or staged/hybrid migrations are often safer.
Final Thoughts#
IMAP migration works well when its limitations are respected. Most failed migrations happen due to poor preparation, early DNS changes, or misunderstanding what IMAP can and cannot move.
Rather have us do it for you?
A free 15-minute call. We look at your tenant and tell you what to fix first.
Book a Free CallWRITTEN BY
Ahmed Masoud, Founder & CEO
Ahmed and the MStack360 team deliver Microsoft 365 migrations, security and Power Platform projects for businesses across North America, Europe, Australia and the Middle East.