EdbMails EDB Recovery and Migration software
  • Products
    EdbMails
    All-in-one Recovery and Migration
    • EDB Recovery and Migration
    • OST, PST, MBOX, NSF, EML, MSG
    • Office 365, Exchange Migration
    • SharePoint, OneDrive & Teams
    • Google Workspace Migration
    • IMAP Migration
    • Duplicate Remover
    • EdbMails Data Recovery
    • Backup Solutions
    • All ProductsAll Products

    EDB Recovery and Migration

    EdbMails lets you recover corrupted, damaged, and offline Exchange EDB files, convert EDB mailboxes to PST format, and directly migrate mailbox data to Office 365 and live Exchange Server.

    EDB to PST
    EDB to PST
    Recover corrupted, damaged, offline EDB files and convert Exchange EDB mailboxes to PST file format
    Public Folder to Exchange
    Public Folder to Exchange
    Migrate public folders from an Exchange offline EDB file to live Exchange Server
    EDB to Live Exchange Migration
    EDB to Live Exchange Migration
    Directly migrate offline Exchange database (EDB) files to live Exchange server
    Archive Mailbox to Office 365
    Archive Mailbox to Office 365
    Migrate archive mailboxes from offline EDB files directly to Office 365
    EDB to Office 365 Migration
    EDB to Office 365 Migration
    Directly migrate offline Exchange database (EDB) files to Office 365
    Public Folder to Office 365
    Public Folder to Office 365
    Migrate public folders from an offline Exchange EDB file to Office 365

    OST, PST, MBOX, NSF, EML, MSG Export and Migration

    EdbMails lets you to recover OST and PST files, export OST, PST, MBOX, NSF, EML, and MSG files to PST files, and directly migrate OST, PST, MBOX, and NSF mailbox data to Office 365 and live Exchange Server.

    OST Recovery and Migration
    OST Recovery and Migration
    Recover offline OST files, convert OST to PST, and migrate OST to Office 365 and Exchange Server
    PST Recovery and Migration
    PST Recovery and Migration
    Recover Outlook PST files , Export PST to PST, migrate PST to Office 365 and Exchange Server
    MBOX Export and Migration
    MBOX Export and Migration
    Export MBOX to PST, migrate MBOX to Office 365 and Exchange Server
    NSF Export and Migration
    NSF Export and Migration
    Export NSF to PST, migrate NSF to Office 365 and Exchange Server
    EML to PST Export
    EML to PST Export
    Convert EML files to Outlook PST files
    PST to MSG Export
    PST to MSG Export
    Convert Outlook PST file to MSG file format
    MSG to PST Export
    MSG to PST Export
    Export MSG files to Outlook PST files

    Office 365, Exchange Migration

    EdbMails lets you securely migrate mailboxes across Microsoft 365, Exchange, Google Workspace (Google Workspace Migration), and IMAP-supported servers such as Outlook, Gmail, Zimbra, Zoho Mail, and cPanel, ensuring zero downtime.

    Office 365 Backup
    Office 365 Migration
    Migrate between Office 365 tenants, Office 365 to Exchange, Office 365 to PST, PST files to Office 365.
    Exchange Server Backup
    Exchange Migration
    Migrate between any Exchange Servers, Exchange to Office 365, Exchange to PST, PST files to Exchange.
    Tenant to Tenant Migration
    Tenant to Tenant Migration
    Migrate Mailboxes, Public Folders, Archive Mailboxes between Office 365 Tenants.
    Exchange to Office 365
    Exchange to Office 365
    Migrate Mailboxes, Public Folders, Archive Mailboxes from live Exchange server to Office 365.
    Office 365 to IMAP
    Office 365 to IMAP
    Migrate Office 365 to IMAP, Office 365 to Gmail, Office 365 to Outlook, Office 365 to Zoho etc.
    Exchange to IMAP
    Exchange to IMAP
    Migrate from live Exchange Server to IMAP servers such as Gmail, Outlook, and Zoho Mail.
    Public Folder to Office 365
    Public Folder to Office 365
    Migrate Public Folders between Office 365 tenants with complete folder hierarchy and mailbox data integrity.
    Exchange to PST
    Exchange to PST
    Export live Exchange Server mailboxes, public folders, and archive mailboxes to Outlook PST files.

    SharePoint, OneDrive & Microsoft Teams Migration

    EdbMails lets you migrate SharePoint sites, OneDrive data, Microsoft Teams, teams, channels, chats, permissions, and documents between Microsoft 365 tenants while maintaining the existing folder structure and data integrity.

    SharePoint, OneDrive & Teams Backup
    SharePoint Online Migration
    Migrate documents, lists, files and folders from SharePoint sites.
    OneDrive for Business Migration
    OneDrive for Business Migration
    Migrate documents, lists, files, folders, private chats from OneDrive.
    Microsoft Teams Migration
    Microsoft Teams Migration
    Migrate Teams, chats, channels, documents, files and folders etc.

    Google Workspace / G Suite Migration

    EdbMails offers secure Google Workspace migration to Office 365, Exchange, or IMAP, and export to PST covering emails, contacts, calendars and tasks.

    Google Workspace Migration
    Google Workspace Migration
    Migrate emails, calendars, contacts, tasks from Google workspace to Google workspace, office 365, Exchange and IMAP. Export to PST
    Google Workspace to Office 365
    Google Workspace to Office 365
    Migrate emails, calendars, contacts, tasks from Google Workspace / G Suite to Office 365
    Google Workspace to Exchange Server
    Google Workspace to Exchange Server
    Migrate emails, calendars, contacts, tasks from Google Workspace / G Suite to on-Premise Exchange Server
    Google Workspace to IMAP
    Google Workspace to IMAP
    Migrate emails, calendars, contacts, tasks from Google Workspace / G Suite to IMAP, Outlook, Zimbra, Zoho etc.
    Google Workspace to Google Workspace Migration
    Google Workspace to Google Workspace
    Migrate emails, calendars, contacts, tasks between two Google Workspace / G Suite tenants
    Google Workspace to PST
    Google Workspace to PST
    Export emails, calendars, contacts, tasks from Google Workspace / G Suite to Outlook PST files

    IMAP Migration

    EdbMails IMAP Migration tool lets you easily migrate emails from IMAP servers such as Outlook, Gmail, Zoho Mail, Zimbra, cPanel, and more. Supports IMAP to IMAP, Office 365, Exchange Server, PST, and bulk PST to IMAP migration.

    IMAP Email Backup & Migration
    IMAP Email Backup & Migration
    Backup and migrate emails from IMAP servers to PST, Office 365, and On-Premises Exchange Server
    IMAP to Office 365
    IMAP to Office 365
    Migrate emails, folders, and attachments from IMAP servers to Office 365
    IMAP to Exchange
    IMAP to Exchange
    Migrate emails, folders, and attachments from IMAP servers to on-premises Exchange Server
    IMAP to PST
    IMAP to PST
    Export emails, folders, and attachments from IMAP servers to Outlook PST files for backup
    PST to IMAP
    PST to IMAP
    Migrate emails, folders, and attachments from bulk PST files to IMAP servers

    Duplicate Remover

    EdbMails Duplicate Remover lets you easily remove duplicate items from Office 365 and Exchange Server, and from IMAP, Outlook, Gmail, Zimbra, Zoho Mail, etc., ensuring a clean and organized mailbox.

    Remove Duplicates
    Remove Duplicates
    Easily clean up your Office 365, Exchange, Outlook and IMAP accounts by removing duplicate emails.
    Remove Duplicates from Office 365
    Remove Duplicates from Office 365
    Remove duplicate emails, calendars, contacts, journal tasks, etc. from Office 365.
    Remove Duplicates from Exchange Server
    Remove Duplicates from Exchange Server
    Remove duplicate emails, calendars, contacts, journal tasks, etc. from live Exchange Server.
    Remove Duplicates from IMAP, Outlook
    Remove Duplicates from IMAP, Outlook
    Remove duplicate emails, attachments from IMAP, Outlook, Gmail, Zimbra, Zoho Mail etc.

    Exchange, SharePoint, OneDrive, Teams and Office 365 Backup

    EdbMails enables secure, automated backup and recovery for Microsoft 365 services including Exchange Online, SharePoint, OneDrive, Teams, and Live Exchange Server with complete data protection and restore flexibility.

    Office 365 Backup
    Office 365 Backup
    Incremental, Granular, Encrypted and Compressed Office 365 Mailboxes Backup
    Exchange Server Backup
    Exchange Server Backup
    Incremental, Granular, Encrypted and Compressed Exchange Mailboxes Backup
    SharePoint, OneDrive & Teams Backup
    SharePoint, OneDrive & Teams Backup
    Backup Online site collections, Team sites, Office 365 groups, all documents etc.

    EdbMails Data Recovery

    EdbMails Data Recovery Software lets you recover permanently deleted data, including photos, videos, documents, and archived files, from partitions on hard drives, SSDs, USB drives, SD cards, and external storage devices.

    EdbMails Data Recovery
    EdbMails Data Recovery
    Recover and restore permanently deleted data from hard drives, SSDs, USB drives, SD cards, and etc.
    Whitepaper Whitepaper
    Request a Demo Request a Demo
    Sign Up Sign Up
  • Features
  • FAQ
  • Offers
  • Pricing
  • Download
  • Support
  • Sign in
User’s Manual
Office 365 Migration Tool

User Manual

User Manual

  • Office 365 Migration Tool Overview
  • What is Office 365 Migration?
  • System Requirements
  • Migration Scenarios
  • Software Setup
    • EdbMails Installation Process
    • Upgrading the Software
  • Understanding the Application
    • Software's Main Components
    • Understanding the Migration
  • FAQ
    • General
    • Migration Free Trial / Demo
    • Migration License
    • Before Migration
    • Migration - Steps
    • After Migration
  • Videos
    • Office 365 to Office 365
    • Office 365 to Exchange
    • Office 365 to IMAP
    • Office 365 to PST
    • Public Folder to Office 365
    • Archive Mailbox to Office 365
    • Public Folder to Exchange
    • Archive Mailbox to Exchange
    • Restore Bulk PST files to Office 365
    • Automatically Create Office 365 Mailboxes
    • Export Office 365 user to CSV file
  • Screenshots
    • Office 365 to Office 365
    • Office 365 to Exchange
    • Office 365 to PST
  • How it works?
    • Office 365 to Office 365
    • Office 365 to Exchange
    • Office 365 to IMAP
    • Office 365 to PST
    • Public Folder to Office 365
    • Public Folder to Exchange
    • Public Folder to Shared Mailbox
    • Archive Mailbox to Office 365
    • Archive Mailbox to Exchange
    • Office 365 to Hosted Exchange
    • Multiple PST to Office 365
    • Office 365 to Gmail Migration
    • Office 365 Shared mailbox to Exchange
    • Office 365 Public folders to PST
    • Office 365 archive mailbox to PST
    • Office 365 Shared mailbox to PST
    • Office 365 shared mailbox to Public folder
    • Office 365 Archive mailbox to Shared mailbox
    • Office 365 Shared mailbox to Archive mailbox
  • Connect to source Office 365
  • Connect to target Office 365
  • Modern Authentication Using OAuth 2.0
    • Microsoft 365 modern authentication
    • Automatic Registration
    • Manual Registration
  • Connect to Exchange server
  • Knowledge Base
    • Migrate between Office 365 tenants
    • Migrate Office 365 mailbox
    • Public folder migration
    • Office 365 Migration with same Domain
    • Office 365 Group Migration
    • Selective Mailbox Migration
    • Migration to Exchange 2007, 2010, 2013, 2016 and 2019
    • User-Defined Mailbox/Folder Mapping
    • Export Office 365 users to CSV
    • GoDaddy to Microsoft 365 migration
    • Rackspace to Office 365 migration
    • Office 365 migration methods
    • Office 365 migration checklist
    • Migrate Shared mailbox to Office 365
    • Office 365 migration best practices
    • Office 365 migration challenges
    • Convert shared mailbox to regular mailbox
    • Office 365 to Exchange 2019 migration
    • Office 365 multiple mailbox migration
    • Office 365 Server to Server Migration
    • Cross-Tenant Office 365 migration
    • Office 365 to iCloud migration
    • Office 365 to Yahoo Mail migration
    • Office 365 to cPanel Migration
    • Office 365 to SmarterMail Migration
    • Office 365 to IceWarp migration
    • Create an Office 365 Migration Endpoint
    • Validate Office 365 Mailbox Migration
    • Office 365 Migration Network Requirements
    • Microsoft 365 Migration URLs & Endpoints
    • Office 365 Migration Firewall Ports
    • DNS Changes After Office 365 Migration
    • Autodiscover Troubleshooting After Migration
    • Post-Migration MX Record Validation
    • Office 365 Mail Flow Troubleshooting
    • Mailbox Permission Validation
    • EdbMails vs CodeTwo vs MigrationWiz vs Native Tools
    • Calendar Permission Migration Issues
    • Folder Permission Troubleshooting
    • Large Mailbox Migration Best Practices
    • Archive Mailbox Sync Issues
    • Office 365 Migration Coexistence
    • Cross-Tenant Mailbox Permissions
    • Cross-Tenant Calendar Migration
    • Migration Using App-Only Authentication
    • Office 365 Mailbox Mapping Errors
    • Exchange Online Migration Limits
    • Mailbox Integrity After Migration
    • Security Best Practices for Migration
    • Office 365 to cPanel Migration
    • Office 365 to SmarterMail Migration
    • Office 365 to IceWarp Migration
  • Migration Types
    • Cutover Migration
    • Staged Migration
  • Set Exchange Server Impersonation rights
  • Map the Mailboxes
  • Migration Walkthrough
    • Office 365 tenant to tenant migration
    • Office 365 to PST Export
  • Multifactor Authentication
    • Enable MFA in Office 365
    • Create App password for MFA
    • Disable Security Defaults
  1. Home
  2. Office 365 Migration Tool
  3. Office 365 Migration Endpoint Authentication Errors
Download Buy Now

Office 365 Migration Endpoint Authentication Errors

There's a particular flavor of frustration that comes with a migration that was working fine an hour ago and is now throwing 'authentication failed with the remote server" for no apparent reason. Nothing in the mailbox changed. Nobody touched a password. And yet the migration endpoint just stops trusting the connection. Most of the time, this isn't really a migration problem — it's an identity problem wearing a migration error message. Microsoft has spent the last several years steadily phasing out Basic Authentication across nearly every Exchange Online protocol, and a lot of migration tooling that worked perfectly well in 2021 quietly stopped working once Basic Auth was switched off for good. EdbMails Office 365 Migration is built on modern, OAuth-based authentication for its Microsoft 365 connections, which sidesteps most of the errors this page covers — but understanding what's actually going on under the hood still helps when a migration endpoint refuses to authenticate. Here's a practical breakdown of why these errors happen and how to get past them.

What Is a Migration Endpoint, and Why Does Authentication Fail There?

A migration endpoint is essentially the connection profile a migration job uses to reach a mailbox source or target — it tells the migration service how to connect, what credentials or tokens to use, and which authentication protocol to speak. When that authentication step fails, the endpoint can't establish a trusted session, and the migration can't move data in either direction.

Authentication errors at this layer almost always trace back to one of a few root causes: the authentication protocol itself being unsupported, expired or incorrectly scoped credentials, missing application permissions, or a mismatch between what the endpoint is configured to use and what Microsoft's servers will actually accept.

Why This Has Gotten More Common Recently

For years, Basic Authentication — a simple username-and-password handshake — was the default way many migration tools and scripts connected to Exchange Online. Microsoft began retiring it protocol by protocol: EWS, EAS, POP, IMAP, and Remote PowerShell were all cut over to Modern Authentication by the end of 2022. SMTP AUTH Client Submission held on longer, but Microsoft's latest timeline has Basic Auth disabled by default on existing tenants by the end of December 2026, with no exceptions or permanent waivers being granted after that.

Separately, Microsoft began deprecating the Application Impersonation role — long used by many migration and backup tools to access mailboxes on a user's behalf — starting in February 2025, in favor of more granular API permission models. Tools and scripts still leaning on Application Impersonation are increasingly likely to hit permission failures with no advance warning of exactly when.

Put together, a lot of the authentication errors administrators are running into during migrations today aren't really new bugs — they're old configurations finally catching up with Microsoft's security roadmap.

Common Endpoint Authentication Errors and What They Actually Mean

"Authentication failed with the remote server" / MigrationPermanentException

AADSTS700016, AADSTS90002, AADSTS50126

These Entra ID (Azure AD) sign-in error codes show up frequently when configuring OAuth-based migration endpoints. Broadly: AADSTS700016 usually means the application ID being used either wasn't found in the tenant or hasn't been properly registered/consented; AADSTS90002 typically points to an incorrect tenant ID; AADSTS50126 generally signals invalid username or password credentials being passed where they shouldn't be. Getting any of the Application ID, Tenant ID, or client secret fields wrong on a migration endpoint produces one of this family of errors.

535 5.7.3 Authentication Unsuccessful

Common on SMTP-based connections. This typically means SMTP AUTH isn't enabled for the account in question, or a tenant-wide Security Defaults policy is blocking legacy authentication outright. Re-enabling SMTP AUTH per mailbox or adjusting Conditional Access policy (rather than disabling Security Defaults wholesale) is the usual fix.

Sign-in Loops or "An Error Occurred" with AD FS Environments

In federated environments using AD FS, modern authentication requires forms-based authentication to be enabled as a fallback. If it isn't, users and service accounts can get stuck in a sign-in loop or hit a generic "contact your administrator" error during migration-related authentication.

Application Permission / Impersonation Errors

As Microsoft phases out Application Impersonation, tools still depending on it for mailbox access may start failing intermittently, with no fixed date for when a given tenant's access will actually break. The recommended path is migrating to application-level API permissions and OAuth app registrations rather than waiting for impersonation to be cut off entirely.

How Different Migration Approaches Handle Authentication

ApproachAuthentication MethodCommon Pain Point
Legacy scripts / older migration tools using Basic AuthUsername and password sent directly to EWS, IMAP, or SMTP endpointsIncreasingly broken as Microsoft disables Basic Auth tenant-by-tenant; no warning before it stops working.
Hybrid Configuration Wizard / remote move migrationsOAuth, but endpoint objects must be explicitly reconfigured to use it (Set-MigrationEndpoint -Authentication OAuth)Easy to leave a stale credential object in place, silently forcing legacy authentication even when OAuth is enabled.
Migration tools relying on Application ImpersonationApplication Impersonation role assigned to a service accountBeing phased out by Microsoft since February 2025; no fixed cutoff date per tenant, so failures can appear without warning.
Migration tools built on modern OAuth app registrations and Graph / Entra ID permissionsApp registration with explicit, granular API permissions, consented at the tenant levelRequires correct app registration and admin consent up front, but is not subject to the same deprecation timeline as Basic Auth or Application Impersonation.

The pattern across all of these: tools still depending on Basic Authentication or Application Impersonation are working against a closing window, while tools built around explicit OAuth app registrations and modern permission scopes are aligned with where Microsoft's platform is heading.

How EdbMails Handles Authentication for Office 365 Migrations

EdbMails Office 365 Migration Software connects to Microsoft 365 using modern, OAuth-based authentication rather than legacy Basic Authentication or Application Impersonation, which keeps it aligned with Microsoft's current and announced security direction rather than relying on protocols already being phased out. In practical terms, this means:

  • OAuth-based connections to Exchange Online, avoiding dependency on Basic Authentication that Microsoft is actively disabling across tenants.
  • Support for Microsoft 365 app registration and permission-based access, rather than the Application Impersonation role currently being deprecated.
  • Clear, mailbox-level error reporting when an authentication issue does occur, allowing administrators to determine whether the problem is caused by missing permissions, token issues, or tenant-side restrictions instead of a generic failure.
  • Compatibility with Modern Authentication requirements already enforced across Exchange Online, Microsoft Teams, and SharePoint, preventing migration projects from being disrupted by authentication policy changes during execution.

This doesn't mean every authentication error disappears — issues like incorrect app permissions, expired admin consent, or tenant-side Conditional Access policies still need to be resolved at the Microsoft 365 admin level. But the underlying connection method itself isn't the thing standing in the way.

Step-by-Step: Troubleshooting a Migration Authentication Error

  1. Read the exact error code or message. Errors such as "Authentication failed with the remote server", an AADSTS code, or an 535 5.7.3 SMTP error indicate different layers of the authentication process and should be investigated accordingly.
  2. Confirm which authentication method the migration endpoint is actually using. For PowerShell-managed endpoints, verify that the Authentication property is set to OAuth and that the Credentials field is empty. A populated username typically indicates that legacy authentication is still being used.
  3. Verify the Application (Client) ID and Directory (Tenant) ID configured for OAuth authentication. Authentication failures frequently occur because one of these values is incorrect or belongs to a different Microsoft 365 tenant.
  4. Confirm that administrator consent has been granted for all required Microsoft Graph or Exchange Online application permissions. Without tenant-wide admin consent, OAuth authentication cannot succeed even if the application registration is otherwise configured correctly.
  5. If using SMTP AUTH, verify that SMTP authentication is enabled for the affected mailbox and confirm that Security Defaults or Conditional Access policies are not blocking legacy authentication protocols across the tenant.
  6. For AD FS environments, verify that forms-based authentication is enabled as a supported fallback authentication method.
  7. If your migration still depends on the Application Impersonation role, plan to migrate to modern app-based permissions rather than waiting for the feature to stop working. Microsoft has announced its deprecation but has not published a fixed retirement date for every tenant.
  8. After making configuration changes, re-test connectivity to the affected mailbox using the migration tool's mailbox connection or connectivity test before restarting the full migration batch.

Best Practices to Prevent Authentication Errors During Migration

  • Inventory all accounts, scripts, and migration tools in your environment that still rely on Basic Authentication before starting the migration project.
  • Register the required Microsoft 365 application and grant administrator consent for all necessary permissions well before migration day, rather than during a live cutover.
  • Avoid designing new migration workflows around the Application Impersonation role, as Microsoft is actively deprecating this authentication model.
  • Keep migration endpoint configurations clean by removing legacy username and password credentials from endpoints that are intended to use OAuth authentication.
  • Validate authentication by testing connectivity to a single pilot mailbox before launching a full migration batch.
  • Monitor Microsoft's published timelines for Basic Authentication and other legacy protocol deprecations, as implementation schedules may change over time.

Frequently Asked Questions

  1. Why did my migration suddenly start failing with an authentication error when nothing changed on my end?

    In many cases, Microsoft has disabled Basic Authentication or another legacy authentication protocol for your tenant as part of its ongoing security rollout. Even if your migration configuration has not changed, authentication can begin failing when the underlying protocol is no longer supported. Reviewing Microsoft's latest deprecation guidance for the affected protocol is usually the quickest way to confirm the cause.

  2. What does AADSTS700016 mean during migration endpoint setup?

    AADSTS700016 typically indicates that the specified Application (Client) ID cannot be found in the Microsoft Entra ID tenant or that the application has not been registered correctly. Verify that the Application ID belongs to the correct tenant and that the required Microsoft 365 permissions have been granted with administrator consent.

  3. Is Application Impersonation still recommended for mailbox migrations?

    No. Microsoft began deprecating the Application Impersonation role in February 2025 and continues to phase it out across Microsoft 365 tenants. Although some environments may still support it temporarily, new migration projects should adopt modern OAuth-based application permissions to avoid future authentication failures.

  4. Does EdbMails require Basic Authentication or Application Impersonation to migrate mailboxes?

    No. EdbMails uses modern OAuth-based authentication together with Microsoft-supported permission models to connect to Microsoft 365. It does not rely on Basic Authentication or the deprecated Application Impersonation role for mailbox migrations.


Additional resources:

  • EdbMails Office 365 Migration Tool
  • Resolve Office 365 Mailbox Mapping Errors
  • Exchange Online Service Limits for Migration
  • Coexistence During Office 365 Migration
Additional resources and related guides

 In this manual

IntroductionAuthentication ErrorsMigration ApproachesTroubleshootingBest PracticesFAQ's

Office 365 Migration

100 Mailboxes $299 Only

Buy Now

Need help?

24/7 Customer support

Contact us on Live chat

Personalized Demo

Book a personalized demo

Still need help?

Email us / Call us

@edbmails.com All rights are reserved Privacy Policy | Terms of Use | GDPR | Security | Press Releases

hidden msg
Live Chat

Hi, May I help you?

Hide Chat Now