OAuth, passwords, and app passwords
A mailbox accepts three sign-in methods. Using a method your provider does not support fails exactly like a mistyped password, so many "login failed" errors are really "wrong method" errors.
The three methods
- Your password: the one you use in webmail. It works only where the provider still lets mail clients use it, mainly generic IMAP hosts and some smaller services.
- App password: a separate, single-purpose password you generate at the provider for one app. It lets a mail client in without weakening two-factor authentication. It is not your normal password.
- OAuth: you sign in on the provider's own screen, and the provider gives the app a token instead of your password. It is the only method Microsoft and Google still support on consumer accounts.
Method by provider
OAuth (MailMigrata holds OAuth credentials for these):
| Provider family | Method |
|---|---|
| Gmail / Google Workspace | OAuth |
| Microsoft: Microsoft 365, Outlook.com, Live.com, Hotmail, MSN | OAuth |
| Zoho Mail | OAuth |
No OAuth path:
| 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 is in the OAuth table and a screen asks for a password, the method is wrong. No password will work.
"OAuth2 or IMAP + app password"
Some provider pages list both methods. In that case:
- If there is a Connect button, use it. It performs OAuth.
- If there is no Connect button, use the manual form. With 2FA on, enter an app password, not your normal password.
- Do not turn off two-factor authentication to make the password field work. It does not restore password login where the provider has retired it, and it weakens the account.
Common myths
- "Generate an app password and use it as your password." An app password is issued once by the provider and shown once. If you did not generate it, it is not an app password.
- "An app password bypasses two-factor." It does not. It is the 2FA-compatible route and keeps 2FA on.
- "Microsoft app passwords still work." 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. Use Microsoft sign-in instead.
- "Google always allows app passwords." A Workspace administrator can turn them off for the whole domain.
- "It will keep working." Revoke the app password when the job is finished. A migration credential should not outlive the migration.
When a login fails
- Check the method. No password replaces OAuth on a provider in the OAuth table.
- Check the plan or account state. Some providers allow mail-app access only on paid tiers, and some have closed free accounts.
- Check the server name. A retired host name fails like a bad password. The provider page lists the current one.
- Check the password last.