Email Migration

Fix Office 365 IMAP Migration Timeouts and Transient Failures

Maira MehtabMaira Mehtab Nov 20, 2026 868 views

Question details

Resolve repeated transient network errors and connection timeouts during an IMAP migration to Office 365.

Fix Office 365 IMAP Migration Timeouts and Transient Failures
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.
Before you start

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.

Solution 1Recommended

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.

1
Verify the endpoint settings

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.

2
Review firewall rules

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.

3
Connect to Exchange Online PowerShell

Open PowerShell with the Exchange Online Management module installed and run Connect-ExchangeOnline. Sign in with an account authorized to manage the migration.

4
Test the IMAP server

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.

5
Restart the migration batch

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.

Check firewall access and test the IMAP migration endpoint
Match the provider's settings: Port 993 is commonly used for IMAP over SSL/TLS; port 143 may use different security settings. Use the port and encryption method supported by the source provider.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXUse familiar document, spreadsheet, and presentation toolsMove existing Office documents into a lightweight productivity suiteKeep working on documents while an administrator resolves email migration issues
microsoft office alternative - wps office

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.