Microsoft Email Migration Tool: Step-by-Step Guide
In this article
Microsoft's email migration tool is not a single downloadable app but a set of built-in wizards in the Microsoft 365 admin center and Exchange admin center that copy mail, calendars and contacts from another provider or server into Microsoft 365. The most common one is the IMAP migration tool, which works for any IMAP-enabled mailbox (Gmail, Yahoo, Zoho, a web host, and so on). There is also a cutover migration for small Exchange servers and a hybrid migration for large Exchange organizations. The steps below focus on the IMAP migration tool because it is the one most people can use without extra infrastructure. Before you start, confirm three things: you have admin rights in Microsoft 365, you know the IMAP server name and port for the source mailbox, and you have an app password or OAuth credentials ready if the source provider requires them.
What You'll Need
- A Microsoft 365 tenant with at least one Exchange Online license per mailbox you plan to migrate.
- Global administrator or Exchange administrator role in the Microsoft 365 admin center.
- The source mailbox's IMAP server hostname and port (usually 993 with SSL).
- Valid credentials for each source mailbox, or an app password if the provider enforces two-factor authentication.
- A list of the source email addresses and their matching Microsoft 365 mailboxes (they must already exist).
- A stable internet connection and enough time: migrations run in the background and can take hours or days depending on mailbox size.
Step-by-Step
- Create the destination mailboxes. In the Microsoft 365 admin center, go to Users > Active users and add each user with a license that includes Exchange Online. The migration tool will not create mailboxes for you; it only fills existing ones. Note that menu labels can differ slightly by version, device or region.
- Open the migration dashboard. In the Microsoft 365 admin center, expand Setup and choose Migration, or go directly to the Exchange admin center and select Migration under Recipients. The exact path depends on whether you are in the modern admin center or the classic Exchange admin center.
- Start a new migration batch. Click New or Add migration batch, then choose Migrate to Exchange Online. Select IMAP migration as the migration type.
- Enter the source server details. Provide the IMAP server hostname and port. If you do not know them, check your current provider's help pages; common values are imap.gmail.com:993 for Gmail and imap.mail.yahoo.com:993 for Yahoo. Leave the security setting on SSL unless your provider says otherwise.
- Upload the migration file. The tool expects a CSV file with two columns: the source email address and the destination Microsoft 365 email address. The header row must be exactly
EmailAddress,UserNamewhereEmailAddressis the destination andUserNameis the source login. Save the file as UTF-8 CSV and keep it under the row limit shown on the page. - Choose what to migrate. By default the tool copies mail only. If you need calendars and contacts, note that the IMAP migration tool does not move them; you will need to export them separately from the source (for example as an ICS or CSV) and import them into Outlook on the web or Outlook desktop. Do not expect the wizard to handle them.
- Set the migration batch options. Give the batch a name, choose when to start it, and decide whether to send a report to an administrator email address. You can also set the batch to start manually so you can review settings first.
- Start the batch and monitor progress. After you save, the batch appears in the migration dashboard with a status such as Syncing, Synced or Failed. Click the batch to see per-mailbox details. The initial sync copies existing mail; incremental syncs run periodically to pick up new messages until you complete the batch.
- Complete the batch. When the status shows Synced and you are ready to switch users over, select the batch and choose Complete. This stops further syncing and finalizes the migration. Users can then log in to Microsoft 365 and see their mail. Do not complete the batch until you have changed DNS or told users to stop using the old mailbox, or new mail will be left behind.
- Verify and clean up. Ask a few users to check their inbox, sent items and folder structure. Then remove the migration batch and, if you used a CSV, delete it from your computer because it contains credentials.
Common Mistakes
- Using the wrong CSV format. The columns are destination first, source second. Swapping them causes every mailbox to fail with an authentication error.
- Forgetting to create destination mailboxes. The tool cannot create them; if the destination address does not exist, the row fails.
- Assuming calendars and contacts move. IMAP migration is mail-only. Plan a separate export/import for calendars and contacts.
- Completing the batch too early. Once completed, the sync stops. Any mail sent to the old mailbox after that point is not copied.
- Using a normal password when the source provider requires an app password. Gmail, Yahoo and others block basic authentication for accounts with two-factor enabled; generate an app password first.
- Ignoring the migration report. The report lists failed items and the reason. Skipping it leaves you thinking everything worked when some folders did not.
Tips
- Run a small test batch with one or two mailboxes before migrating everyone. It surfaces credential and server-name problems quickly.
- Migrate over a weekend or overnight if mailboxes are large; the initial sync can take many hours and is throttled by the source server.
- Keep the old mailbox active and forwarding for a week after cutover so nothing is lost.
- Use a dedicated admin account for the migration rather than a personal one, and remove its access when done.
- Document the IMAP server name and port for each provider; they are easy to mix up when you have several domains.
Troubleshooting
If a mailbox shows Failed, open the batch and read the error description. The most common causes are wrong credentials, an incorrect server name or port, or the source provider blocking IMAP access. Sign in to the source mailbox through its web interface and confirm IMAP is enabled in its settings. If the provider uses two-factor authentication, create an app password and use that in the CSV instead of the normal password. If the batch is stuck on Syncing for a long time, check the source provider's status page and your own internet connection; large mailboxes simply take time. You can stop and restart a batch without losing already-migrated mail. If a user reports missing folders, check whether the folder is a special folder (like Archive) that the source exposes differently over IMAP; some providers hide them. For calendar and contact gaps, remember the IMAP tool does not handle them, so use a separate export and import. If you cannot resolve an authentication error, try the source mailbox's IMAP settings in a desktop mail client to confirm they work outside Microsoft 365.
Frequently Asked Questions
Does the Microsoft email migration tool cost extra?
No. It is included with Exchange Online and Microsoft 365 subscriptions that include Exchange Online. You pay only for the destination licenses.
Can I migrate from Gmail or Yahoo?
Yes, as long as IMAP is enabled on the source account and you use an app password if two-factor authentication is on. The tool treats them like any other IMAP server.
Will it move my calendar and contacts?
No. The IMAP migration tool copies mail only. Export calendars and contacts separately from the source and import them into Outlook.
Can I run the migration while users keep using their old mailboxes?
Yes. The batch syncs periodically, so users can keep working. Complete the batch only when you are ready to switch them to Microsoft 365.
What happens if I complete the batch by mistake?
The sync stops. You can start a new migration batch for the same mailboxes to pick up new mail, but any messages sent to the old mailbox after completion will not be copied automatically.
Is there a limit on mailbox size?
The tool itself does not impose a fixed size limit, but very large mailboxes take longer and may hit source-provider throttling. Check your source provider's IMAP limits.