Email Migration to Microsoft 365: Step-by-Step Guide
In this article
Email migration to Microsoft 365 means moving existing mail, calendars and contacts from your current provider or server into Microsoft 365 mailboxes so users keep working with the same addresses and history. The shortest working path is: inventory every mailbox and its size, verify you own the domain, create the mailboxes in Microsoft 365, run a migration batch using the tool that matches your source, then switch mail flow (MX records) and only then remove the old system. You will need admin access to both the source and the Microsoft 365 tenant, DNS control for your domain, and a list of every mailbox with its approximate size.
What You'll Need
- Global admin or Exchange admin rights in the Microsoft 365 tenant, and admin rights on the source mail system.
- DNS access at your domain registrar or DNS host, for verification records and later MX changes.
- A complete mailbox inventory: every address, alias, shared mailbox, distribution list and its approximate size.
- Source server details: for IMAP, the hostname, port and whether SSL/TLS is required; for Exchange, an admin account with impersonation or full access rights.
- App passwords or OAuth consent for accounts with multi-factor authentication enabled.
- A maintenance window and a communication note to users, because mail flow will briefly change.
Step-by-Step
- Inventory and plan. Export a list of all mailboxes, aliases, shared mailboxes and distribution lists, with mailbox sizes. Note which accounts are leavers, which are shared, and which need forwarding. This list becomes your migration checklist and your post-migration verification list.
- Verify your domain in Microsoft 365. In the Microsoft 365 admin center, go to Settings > Domains and add your domain. Add the TXT record the wizard shows at your DNS host, then wait for verification. Do not change MX records yet. Menu labels can differ slightly by version and region.
- Create users and mailboxes. Add each user in the admin center (Users > Active users) with a licence that includes Exchange Online. Create shared mailboxes and distribution lists to match your inventory. Assign the primary address exactly as it is today so replies keep working.
- Choose the migration method. Use the Microsoft 365 migration tool for IMAP sources, Exchange cutover or staged migration for on-premises Exchange, or a third-party tool for complex or very large environments. For a handful of mailboxes, IMAP migration is usually enough; for hundreds with calendars and permissions, use the Exchange-based options.
- Prepare the source. Confirm the admin account can access every mailbox, enable IMAP if required, and confirm that multi-factor authentication will not block the migration service. Create app passwords where needed. Test one small mailbox first to confirm credentials and connectivity.
- Create the migration batch. In the Exchange admin center, go to Migration and add a batch. Enter the source server, the admin credentials and the list of mailboxes. Choose whether to migrate only mail or also calendar and contacts (availability depends on the source type). Start the batch and monitor its status.
- Verify the migrated data. When the batch reports synced, sign in as a test user and check inbox count, folder structure, sent items, calendar entries and contacts. Compare against the inventory. Fix missing folders or skipped items before cutover, not after.
- Switch mail flow. Change the MX record at your DNS host to the Microsoft 365 value shown in Settings > Domains. Keep the old system running and receiving for a short overlap period so nothing bounces. Update SPF, DKIM and DMARC records to include Microsoft 365; the domain wizard gives the exact values.
- Run a final sync. After MX propagation, let the migration batch run once more so any mail delivered to the old system during the switch is copied across. Then stop the batch.
- Update clients and settings. Reconfigure Outlook, phones and any mail apps to the new server settings, or let autodiscover handle it. Recreate forwarding rules, signatures and shared mailbox permissions. Update any device or app that sends mail through the old SMTP server.
- Decommission the old system. Only after a stable period with no missing mail, export a final backup of the old mailboxes, then cancel the old service. Keep the backup for as long as your retention policy requires.
Common Mistakes
- Changing MX before mailboxes exist. Mail bounces or lands nowhere. Create and verify mailboxes first, then switch MX.
- Forgetting aliases and shared mailboxes. Users lose mail sent to old addresses. Mirror every alias from the inventory.
- Ignoring mailbox size limits. A source mailbox larger than the target licence allows will fail or truncate. Check sizes against the licence before starting.
- Skipping the test mailbox. Credential or connectivity problems surface on the first real batch and stall the whole project.
- Not updating SPF and DKIM. Mail from the new system lands in spam or is rejected. Update DNS authentication records at cutover.
- Deleting the old system too early. Without a final backup and a stable period, any missed item is gone for good.
Tips
- Migrate in waves: pilot group first, then departments, then everyone. Each wave validates the process.
- Do the cutover outside business hours and tell users in advance what will change.
- Keep the old system in read-only or receive-only mode during the overlap so late mail is not lost.
- Document every DNS record before and after the change so you can roll back quickly.
- Use the migration report to spot skipped items; large attachments and corrupted messages are common causes.
Troubleshooting
If a migration batch stalls, first check the source server is reachable and the admin credentials still work; a password change or expired app password is the most common cause. If items are skipped, open the batch report and look for size or permission errors, then re-run just those mailboxes. If mail bounces after the MX change, confirm the MX record matches the value in the domain wizard and that DNS has propagated. If new mail lands in spam, check SPF, DKIM and DMARC records are complete and correct. If users cannot sign in after cutover, confirm their licence is assigned and their primary address matches the old one. If calendar or contacts did not migrate, check whether your chosen migration type supports them; IMAP migrations typically move mail only, so plan a separate export and import for calendars and contacts. If the old system still receives mail after the switch, verify the MX change at the authoritative DNS host, not just a cached lookup.
Frequently Asked Questions
How long does an email migration to Microsoft 365 take?
It depends on mailbox count and size, but most small migrations complete within hours to a few days. Large mailboxes and slow source servers take longer; plan the cutover after the initial sync finishes.
Will users lose email during the switch?
Not if you keep the old system receiving during the overlap and run a final sync after the MX change. Mail delivered to the old system in that window is copied across.
Can I migrate calendars and contacts?
Yes with Exchange-based migration methods. IMAP migrations generally move mail only, so export and import calendars and contacts separately.
Do I need to change DNS records?
Yes. You need a TXT record to verify the domain, then MX, SPF, DKIM and DMARC records at cutover. The domain wizard provides the exact values.
What happens to shared mailboxes and distribution lists?
They must be recreated in Microsoft 365 and their members and permissions reassigned. They are not migrated automatically by a mailbox batch.
Can I roll back after changing MX records?
Yes, if you kept the old system running and documented the original DNS records. Revert MX and authentication records to the old values and mail flow returns to the previous provider.