logo
search
Email Migration

How to Fix Outlook.com IMAP Migration Authentication Errors

Elise WilliamsElise Williams Sep 28, 2026 869 views

Question details

The user is attempting to migrate emails from Outlook.com to Microsoft 365 but is encountering authentication failures despite successful endpoint connection tests.

How to Fix Outlook.com IMAP Migration Authentication Errors
Product
Microsoft 365 / Outlook.com
Device & OS
not provided
Scenario
Setting up an IMAP migration batch in the Microsoft 365 admin center to import emails from an Outlook.com account.
Observed behavior
The migration fails with an ImapAuthenticationException stating the username or password is incorrect, or IMAP access is disabled, even though Test-MigrationServerAvailability is successful.
Before you start

Verify that you have full access to both the source Outlook.com account security settings and the destination Microsoft 365 Exchange admin center.

Solution 1Recommended

Generate and Use an App Password for Outlook.com

Standard passwords often fail during IMAP migrations if the source account has modern security enabled. Generating an App Password bypasses this legacy authentication block.

Microsoft accounts with Two-Step Verification enabled will actively reject standard account passwords during legacy IMAP syncs or migrations. To successfully authenticate the migration batch, you must create a dedicated App Password.

1
Access Microsoft Account Security

Sign in to the Microsoft account security dashboard (account.microsoft.com/security) using the credentials of the Outlook.com account you are trying to migrate.

2
Enable Two-Step Verification

Navigate to 'Advanced security options'. If Two-Step Verification is not already turned on, enable it. App passwords cannot be generated without this feature.

3
Create an App Password

Scroll down to the 'App passwords' section and click 'Create a new app password'. A 16-character password will be displayed on the screen.

4
Update the Migration Batch

Go to the Microsoft 365 Exchange admin center. Update your migration endpoint or migration batch CSV file, replacing the standard Outlook.com password with the newly generated 16-character App Password.

Generate and Use an App Password for Outlook.com
App Password Usage: App passwords are only entered once per app or migration batch. You do not need to memorize this password for future daily logins.
Free Microsoft Office alternative

Maintain Productivity During IT Migrations with WPS Office

While resolving complex Microsoft 365 email migration and server configuration issues, ensure your daily document workflows remain uninterrupted. WPS Office is a lightweight, intuitive, and highly compatible productivity suite that lets you create, edit, and share documents effortlessly.

Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx)Lightweight application that requires minimal system resourcesFamiliar user interface for seamless transition and immediate productivityFree to use, helping you manage IT and software budgets effectively
microsoft office alternative - wps office

Frequently Asked Questions

Why does Test-MigrationServerAvailability succeed if the migration fails?

The Test-MigrationServerAvailability command primarily checks network connectivity and ensures the IMAP server is reachable on the specified port. It does not fully validate the account-specific credentials or bypass modern authentication policies that block the actual data sync.

Does Outlook.com support legacy IMAP authentication?

Outlook.com is phasing out basic/legacy authentication in favor of modern authentication (OAuth2). However, for older IMAP migration tools, using an App Password is currently the standard workaround if Two-Step Verification is enabled.

Where can I check if IMAP is disabled on my Outlook.com account?

Log in to Outlook.com via a web browser, click the Gear icon (Settings), navigate to Mail > Sync email, and look for the 'POP and IMAP' section. Ensure that external apps and devices are allowed to connect.