Documentation

Migrata Systems help

OAuth, passwords, and app passwords

A mailbox accepts three different methods of proving who you are. Picking a method that your provider does not support fails in exactly the same way a mistyped password fails. That similarity explains why most "login failed" reports are really "wrong method" reports.

The three methods

Your password is the credential that you type into webmail. It works only where your provider still allows a mail client to use it, which today means most generic IMAP hosts and a few smaller services.

An app password is a separate, single-purpose password that you generate at the provider for one app. It exists because your account uses two-factor authentication, and the password lets a mail client in without weakening 2FA. An app password is not your normal password, and it never becomes one.

OAuth works differently, because you sign in on the provider's own screen and the provider hands the app a token instead of your password. OAuth is the only method that Microsoft and Google still support on consumer accounts.

Which method applies to your provider

MailMigrata holds OAuth credentials for the three provider families below, so those accounts sign in through the provider's sign-in screen.

Provider family Method
Gmail / Google Workspace OAuth
Microsoft: Microsoft 365, Outlook.com, Live.com, Hotmail, MSN OAuth
Zoho Mail OAuth

The providers below offer no OAuth path, so a mail client needs an app password when two-factor authentication is switched on.

Provider family Method
Yahoo Mail, iCloud, AOL, GMX, Mail.com, WEB.DE, T-Online App password (when 2FA is on)
Most ISP mailboxes and generic IMAP hosts Your password

If your provider appears in the first table and a screen asks you for a password, then the method is the problem rather than the password. Those three families sign in with OAuth, so no password will work for them.

Why the docs sometimes say "OAuth2 or IMAP + app password"

That phrasing appears on providers where both methods are technically possible, so you should read it in the following way.

  • If a Connect button exists for that provider, then you should use it. The button performs OAuth, which is the supported path.
  • If no Connect button appears, then the manual form becomes the fallback. On an account that uses 2FA, that form needs an app password rather than your normal password.
  • You should never turn two-factor off just to make the password field work. Turning it off does not restore password login on a provider that has retired it, and it leaves the account weaker.

App password myths worth killing

  • Some guides tell you to generate an app password and use it as your password, but that advice is wrong. The provider issues a separate, single-purpose credential once and shows it once. If you did not generate it, then it is not one.
  • The belief that an app password bypasses two-factor is wrong. That credential is the 2FA-compatible route, and it keeps the second factor switched on.
  • A common claim is that Microsoft app passwords still work, but outlook.com, hotmail, live, and msn lost them with basic authentication. In Microsoft 365 an administrator controls the feature, and Microsoft has announced its withdrawal, so no migration should depend on it. You should use the Microsoft sign-in instead.
  • The claim that Google always allows app passwords is wrong, because a Workspace administrator can switch them off for the whole domain.
  • The assumption that it will keep working does not hold, so you should revoke the app password when the job is finished. A credential that you created for a migration should not outlive the migration.

When a login fails

  1. You should check the method first, because no password can replace OAuth on a provider that appears in the table above.
  2. The plan or account state comes second, because some providers only allow mail-app access on paid tiers and some have closed free accounts entirely.
  3. The server name comes third, because a retired hostname fails in the same way that a bad password fails, and the provider page names the current one.
  4. You should assume the password last, and only after you have cleared the three checks above.

See Fix IMAP login failed errors for the rest of the list.