The Wild

Migrate from On-Prem Exchange to Office 365

· 5 min read · Mammals

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

Migrating from on-premises Exchange to Office 365 (Exchange Online) moves your mailboxes, calendars, and public folders to Microsoft's cloud, reducing hardware costs and maintenance while giving users the latest features. This guide covers a full migration using the built-in cutover or staged methods—ideal for organizations with fewer than 2,000 mailboxes. Before starting, you'll need an Office 365 tenant, verified domain, and admin credentials for both your on-prem Exchange and Office 365.

What You'll Need

  • Office 365 tenant with Exchange Online licenses (at least one trial or paid license per mailbox).
  • On-premises Exchange server (2010 or later) with administrator access.
  • Domain verification in Office 365 (add a TXT record via your DNS provider).
  • Internet connection with sufficient bandwidth—plan for at least 10 Mbps per 100 mailboxes for initial sync.
  • Local admin account on the Exchange server for the migration batch (or use the same admin account for both).
  • Optional: a test mailbox to validate the process.

Step-by-Step

  1. Verify your domain in Office 365. Sign in to the Microsoft 365 admin center (admin.microsoft.com), go to Setup > Domains, add your domain (e.g., contoso.com), and follow the DNS verification steps (add a TXT record). Wait for verification to complete.
  2. Add your domain to Exchange Online. In the Exchange admin center (EAC) at admin.exchange.microsoft.com, go to Mail flow > Accepted domains and ensure your domain is listed as authoritative. If not, add it.
  3. Prepare your on-premises Exchange. Ensure your Exchange server is healthy and all mailboxes are enabled. Run Get-MailboxDatabase to confirm databases are mounted. If you have Exchange 2010, install the latest cumulative update.
  4. Create a migration endpoint. In the Exchange admin center, go to Migration > Migration endpoints, click New, and choose Exchange. Enter your on-premises server's FQDN (e.g., mail.contoso.com) and admin credentials. Test the connection—it should succeed.
  5. Create a migration batch. In Migration > Batches, click New, select Migrate to Exchange Online, then choose either Cutover (all mailboxes at once) or Staged (move in waves). For cutover, select all mailboxes; for staged, pick a subset.
  6. Start the initial sync. After creating the batch, click Start. Exchange Online will begin syncing mailboxes—this copies all email, contacts, and calendar items from on-prem to the cloud. Monitor progress in the batch details.
  7. Wait for sync to complete. The initial sync may take hours to days depending on mailbox size and bandwidth. Do not interrupt it. Check for any sync errors in the migration report.
  8. Convert mailboxes to cloud-only. Once the initial sync is complete, run the final incremental sync (this happens automatically). Then, in the batch, click Complete to finalize. This converts on-prem mailboxes to mail-enabled users, and the cloud becomes the primary.
  9. Update DNS records. In your DNS provider, change the MX record to point to contoso.mail.protection.outlook.com (replace contoso with your domain). Also update autodiscover (CNAME to autodiscover.outlook.com) and SPF record to include include:spf.protection.outlook.com. Wait for DNS propagation (up to 24 hours).
  10. Reconfigure Outlook clients. Users may need to restart Outlook. It will automatically detect the new server via autodiscover. For any issues, run the Outlook Auto Account Configuration wizard.
  11. Decommission on-premises Exchange. After all mailboxes are migrated and verified, uninstall Exchange from the server. First, remove any public folders (if not migrated), then uninstall the server role. Keep the server for a week as a safety net.

Common Mistakes

  • Skipping domain verification—without it, mail flow fails.
  • Not updating the MX record before completing the batch, causing mail to be delivered to the old server.
  • Migrating mailboxes while users are actively sending mail—this can cause sync errors. Schedule during off-hours.
  • Forgetting to migrate public folders—they are not automatically moved. Use the separate public folder migration script.
  • Not testing with a pilot mailbox first—always test with one user to catch issues early.

Tips

  • Use the Staged migration if you have over 500 mailboxes or want to control the pace.
  • Before migrating, clean up large mailboxes (over 50 GB) to speed up sync.
  • Communicate with users: let them know when their mailbox will move and that they may need to restart Outlook.
  • Keep a backup of your on-premises data (e.g., export mailboxes to PST) for extra safety.
  • Monitor the migration using the Exchange admin center's dashboard—it shows sync status and errors.

Troubleshooting

  • Migration endpoint fails to connect. Check that the on-premises server is reachable from the internet (open port 443) and that the admin credentials have proper permissions. Try using the server's internal IP if FQDN fails.
  • Sync errors for specific mailboxes. Click on the batch, view errors, and resolve common issues like mailbox size limits or corrupted items. You can retry the batch after fixing.
  • Mail flow not working after DNS change. Verify the MX record is correct and that SPF includes Office 365. Use nslookup -type=mx yourdomain.com to check.
  • Outlook cannot connect. Run the Microsoft Support and Recovery Assistant tool to diagnose autodiscover issues. Ensure the user's profile points to the new server.
  • Duplicate mailboxes appear. This happens if you don't complete the batch properly. Re-run the completion step and ensure on-prem mailboxes are converted to mail-enabled users.

Frequently Asked Questions

How long does the migration take?

Initial sync time varies—roughly 1-2 hours per 100 GB of mailbox data, but it depends on your internet speed. The final cutover is quick (under an hour).

Can I migrate only some mailboxes?

Yes, use the staged migration to move a subset. However, you must eventually move all mailboxes to decommission Exchange.

What happens to public folders?

Public folders are not migrated automatically. You need to use the Microsoft public folder migration script, which is a separate process.

Will users lose email during migration?

No, email is synced in the background. There may be a brief delay in delivery during the final cutover (minutes).

Do I need to keep the on-premises server after migration?

You can decommission it after verifying everything works, but Microsoft recommends keeping it for at least a week as a rollback option.

Can I migrate from Exchange 2007?

No, Exchange 2007 is not supported. You must first upgrade to Exchange 2010 or later, or use a third-party tool.