Fix Office 365 IMAP Migration Timeouts and Transient Failures
Question details
Resolve repeated transient network errors and connection timeouts during an IMAP migration to Office 365.

- Product
- Microsoft 365 Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator is migrating mailboxes from an IMAP server to Exchange Online.
- Observed behavior
- Some mailbox migrations fail with RemoteNetworkErrorTransientException or ConnectionTimeoutTransientException, while others may synchronize successfully.
Identify the source IMAP server hostname, port, and encryption settings used by the migration endpoint. Make sure you have access to the Exchange admin center, Exchange Online PowerShell, and the source server's firewall configuration.
Check firewall access and test the IMAP migration endpoint
Use this approach when repeated transient errors suggest that Exchange Online cannot reliably reach the source IMAP server.
In the Exchange admin center, open Migration and review the migration endpoint's IMAP server hostname, port, and security settings. Confirm that they match the settings supplied by the source email provider.
Check the source server's firewall and any network security devices for blocked connections to the IMAP port. Consult Microsoft's current Office 365 URLs and IP address ranges documentation and allow the applicable Exchange Online migration traffic.
Open PowerShell with the Exchange Online Management module installed and run Connect-ExchangeOnline. Sign in with an account authorized to manage the migration.
Run Test-MigrationServerAvailability -Imap -RemoteServer <IMAP server> -Port 993, replacing <IMAP server> with the source hostname. If your provider uses port 143 instead, test that port and verify the endpoint's encryption settings.
After correcting connectivity or endpoint settings, return to Migration in the Exchange admin center. Stop the affected batch if necessary, start it again, and review its status for recurring errors.

Investigate mailbox-specific failures and server limits
Use this approach when some mailboxes synchronize successfully but others continue to time out.
Work with Office documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Office documents. Its format compatibility makes it easy to move everyday document work, although it does not fix Exchange Online IMAP migrations.

Frequently Asked Questions
What do transient network errors mean during an IMAP migration?
They can indicate intermittent connectivity between Exchange Online and the source IMAP server. Check the migration endpoint, firewall rules, and source server logs, then test connectivity with Test-MigrationServerAvailability in Exchange Online PowerShell.
Should I use port 993 or 143 for the IMAP endpoint?
Use the port and encryption settings specified by your source email provider. Port 993 commonly uses SSL/TLS, while port 143 may use a different security configuration.
Why do only some mailboxes fail to migrate?
Mailbox-specific IMAP access restrictions, server connection limits, throttling, or intermittent network issues can affect some users more than others. Review individual migration reports in the Exchange admin center and check the source server logs.
How do I retry a migration after changing firewall rules?
In the Exchange admin center, open Migration, select the affected batch, and start it again. If the batch is still running, stop it first if necessary, then monitor the user statuses for recurring errors.




