Part 2: IMAP to Microsoft 365 Migration – Technical Guide (cPanel Example)

This guide is written for IT administrators and technical users who want to migrate email from an IMAP-based system to Microsoft 365 themselves.

Ahmed Masoud

2 min read

IMAP to Microsoft 365 migration, IMAP to Office 365, cPanel to Microsoft 365, email migration guide, Microsoft 365 email migration,

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)#

  1. Prepare Microsoft 365
  2. Verify Domain
  3. Prepare IMAP Access
  4. Run Migration Batch
  5. Cut Over DNS

Important IMAP Migration Limits (Read This First)#

  • 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#

Text
EmailAddress,UserName,Password
user@company.com,user@company.com,Password123

Create 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.

SHARE THIS ARTICLE

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 Call

WRITTEN 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.

Ready to Transform Your
Microsoft 365 Environment?

Get a free consultation and discover which level is right for your business.

No commitment
Free 15-min call
500+ clients served

Prefer to browse first? See our service levels →