Email & Microsoft 365

How to Fix “Email Authentication Failed” (Outlook, Mac, Phone) [Solved]

Fix email authentication failed errors on iPhone, Android and Outlook: server ports, app passwords and SMTP settings, step by step.

On this page 8 sections
  1. Why a correct password gets rejected
  2. Generating an app password for Google
  3. Generating an app password for Microsoft
  4. “Cannot Get Mail – authentication failed” on iPhone
  5. Outlook desktop
  6. Yahoo and other providers
  7. When it’s the whole office
  8. Common questions
Brass key inserted in a black door lock on a white door

“Authentication failed” means the mail server looked at the username and password your app sent and refused them. That’s it. The server isn’t down, your internet is fine, and the message has nothing to do with your emails themselves.

Remote IT Help • Mon–Fri 8am–8pm ET · $59 per fix

Stuck on Email Authentication & Login Errors? We Can Fix It Remotely for $59.

Don’t waste hours wrestling with confusing settings, registry keys, or email ports. A GoProIT technician can securely screen-share and resolve your issue for $59.

📞 Call (844) 734-1288 Get a $59 fix →

The confusing part is that this appears constantly on accounts where the password is completely correct. That’s not a contradiction – it’s the most common version of the problem. Google, Microsoft, and Yahoo have all spent the last few years switching off the old way of logging in, and any app still using it gets rejected regardless of whether the password is right.

So before you reset anything: if you have two-factor authentication on that account and you’re setting up a mail app, you almost certainly need an app password, not your regular one. Skip to that section if that describes you.

Why a correct password gets rejected

Six causes cover nearly every case.

The password changed somewhere else. You reset it on your laptop three weeks ago and your phone has been quietly failing ever since. Mail apps cache credentials and only complain when they next try to sync.

Two-factor authentication is on and the app can’t handle it. Your mail client sends a username and password. The server wants a second factor. There’s no way to prompt for it inside a basic IMAP connection, so the whole attempt fails. The answer is an app-specific password.

Basic authentication has been turned off. Microsoft disabled basic auth for Exchange Online across all tenants. Google removed “less secure app access” for Gmail. Both providers now require OAuth. Old apps that only speak the old protocol get a flat rejection.

IMAP or POP is disabled on the mailbox. Microsoft 365 admins can switch these protocols off per-user, and many do as a security baseline. The account works perfectly in Outlook and on the web, and fails in every third-party client.

Wrong server settings. The right password sent to the wrong hostname or port produces the same generic error. Providers vary and autodiscover sometimes guesses badly.

The account is locked. After enough failed attempts – often from a device you forgot was configured, retrying every few minutes – the provider locks the account. Now even the correct password fails until the lockout clears or you unlock it manually.

The one-minute diagnostic: log into your provider’s webmail in a browser with the same password. If that works, your password is fine and the problem is how the app is authenticating – app password, OAuth, or protocol settings. If the browser rejects it too, the password is genuinely wrong or the account is locked. This test rules out half the possibilities immediately.

Generating an app password for Google

If Outlook, Apple Mail, a scanner or another app can’t use “Sign in with Google”, a Gmail account with 2-Step Verification needs an app password: a 16-character code from myaccount.google.com/apppasswords that goes in the app’s password field instead of your Google password. Our Gmail app password guide covers creating one per device and why the option can be missing; on Google Workspace, for example, an admin who enforces security-key-only 2-Step Verification turns app passwords off for those users.

Gmail server settings for the mail app:

SettingValue
Incoming (IMAP)imap.gmail.com, port 993, SSL
Outgoing (SMTP)smtp.gmail.com, port 587, STARTTLS
UsernameFull address including @gmail.com or your domain

There’s no IMAP switch to check any more: Google removed the Enable IMAP setting in January 2025, and IMAP is always on for personal Gmail accounts. On a Google Workspace account, your admin can still turn IMAP off for users, so if a work address fails in every mail app, ask them to check.

Generating an app password for Microsoft

The process differs depending on account type, and that trips people up.

Personal accounts (outlook.com, hotmail.com, live.com)

  • Go to account.microsoft.com/security
  • Select Advanced security options
  • Under App passwords, choose Create a new app password
  • Copy the generated string and use it as the password in your mail client

Two-step verification must be enabled first – same rule as Google.

Work or school accounts (Microsoft 365)

Users go to mysignins.microsoft.com/security-info, click Add sign-in method, and choose App password.

If that option isn’t listed, your administrator hasn’t enabled it. App passwords are a legacy per-user MFA setting rather than an authentication methods policy: in the Microsoft Entra admin center, an admin goes to Entra ID > Users > Per-user MFA > Service settings and selects “Allow users to create app passwords to sign in to non-browser apps”. Many tenants leave it off deliberately, because a genuinely modern client doesn’t need one.

Microsoft 365 server settings:

SettingValue
Incoming (IMAP)outlook.office365.com, port 993, SSL/TLS
Outgoing (SMTP)smtp.office365.com, port 587, STARTTLS
UsernameFull UPN – the address you sign in with

Admins can confirm whether IMAP is even enabled for a user by running, in Exchange Online PowerShell:

Get-CASMailbox -Identity user@yourcompany.com | fl ImapEnabled,PopEnabled

If ImapEnabled is False, that alone explains the failure and no password will work.

Set-CASMailbox -Identity user@yourcompany.com -ImapEnabled $true

“Cannot Get Mail – authentication failed” on iPhone

Apple’s Mail app produces this repeatedly, sometimes several times a day, often after a password change or an iOS update.

Re-enter the password properly

Settings > Apps > Mail > Mail Accounts (on older iOS: Settings > Mail > Accounts), tap the account, tap the account name again to open details, then tap the Password field and retype it. Tap Done and wait for verification.

iOS sometimes displays a saved password that no longer works while showing dots as if it’s populated. Clear the field completely first.

Delete and re-add the account

More reliable than fighting the existing entry. Settings > Apps > Mail > Mail Accounts > tap the account > Delete Account. Then Add Account and pick the provider from the list rather than choosing Other – selecting Google or Microsoft by name triggers the proper OAuth browser sign-in, which handles MFA correctly and needs no app password at all.

For IMAP accounts, deleting the account removes only the local cache; the mail is on the server. For a POP account, check before deleting.

If it keeps recurring

Intermittent authentication failures that clear on their own and come back usually mean the server is throttling the connection, not rejecting the password. Increase the fetch interval: Settings > Apps > Mail > Mail Accounts > Fetch New Data – switch that account from Push to Fetch every 30 minutes and see whether the errors stop.

Also try toggling Airplane Mode on and off, and test on cellular data instead of Wi-Fi. If it works on cellular, something on your office network – a firewall or content filter – is interfering with the mail connection.

If the account is Gmail and mail still isn’t reaching the phone, our Gmail not working on iPhone guide covers both Apple Mail and the Gmail app.

Outlook desktop

Outlook has its own credential cache, separate from Windows, and it can hold a stale password indefinitely while insisting the one you type is wrong.

Clear it: Control Panel > Credential Manager > Windows Credentials. Look for entries beginning MicrosoftOffice16_Data: and any referencing your mail server. Expand each and click Remove. Restart Outlook and sign in fresh.

If the prompt keeps returning, rebuild the mail profile. Control Panel > Mail (Microsoft Outlook) > Show Profiles > Add. Create a new profile, let autodiscover configure it, set it as default. A new profile picks up modern authentication automatically, which is frequently the entire fix on a machine that’s been in service for years.

One more registry-level cause worth knowing: some machines have modern auth disabled through an old policy key. Check HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity for a value named EnableADAL. If it exists and is set to 0, that’s forcing basic auth. Delete the value or set it to 1, then restart.

For a Microsoft 365 or Outlook.com account where the prompt keeps coming back, our Outlook keeps asking for password guide goes through each kind of prompt and its fix.

Yahoo and other providers

Yahoo requires an app password for every third-party client – no exceptions, and it’s been that way for years. Sign in at Yahoo, go to Account Info > Account Security > Generate app password, name it, and use the generated string.

Yahoo IMAP is imap.mail.yahoo.com port 993 SSL; SMTP is smtp.mail.yahoo.com port 465 SSL.

For a mailbox hosted by your web host or domain registrar, get the settings from their control panel rather than guessing. A common trap: the hostname is often mail.yourdomain.com, but the SSL certificate on the server is issued for the host’s own domain, so strict certificate checking rejects the connection. Using the host’s actual server name – something like mail.hostingprovider.net – resolves it.

When it’s the whole office

One person failing to authenticate is a user problem. Everyone failing at once is an account or policy problem, and the causes are short:

  • Subscription lapsed – an expired credit card suspends the tenant and every mailbox with it
  • A conditional access policy was applied that blocks legacy clients or unmanaged devices
  • Basic auth was disabled tenant-wide on schedule
  • Someone changed the domain’s MX or autodiscover records
  • A provider-side outage – check the Microsoft 365 admin center service health page or Google Workspace status dashboard before troubleshooting anything

Consider whether it’s an attack. Repeated authentication failures on an account nobody is actively using can mean someone is guessing passwords against it. Check your sign-in logs – Microsoft 365 admins can review these under Entra ID > Sign-in logs, filtered to failures. A cluster of attempts from unfamiliar countries means change the password immediately, enable MFA if it isn’t on, and revoke existing sessions.

Common questions

What does “authentication failed” actually mean?

The server received your credentials and rejected them. It’s a login refusal, not a network or delivery problem. The credentials might be wrong, or they might be right but sent using a method the server no longer accepts – which is why the message appears so often on accounts with a perfectly valid password.

What’s the difference between an app password and my real password?

An app password is a long random string that works for exactly one application and bypasses the two-factor prompt. Your real password still protects the account everywhere else. The advantage is containment: if a device is stolen or an old app is compromised, you revoke that one app password and nothing else is affected. It also can’t be used to sign into the web interface or change account settings.

Why did this suddenly start after years of working fine?

Almost always a provider-side change rather than anything you did. Microsoft and Google have been retiring basic authentication in stages, and each tenant gets switched over on its own schedule. Your setup didn’t change – the rules did. The fix is either updating the client to one that supports OAuth, or generating an app password.

Should I turn off two-factor authentication to make this easier?

No. Email accounts are the master key to everything else you own – every password reset link lands there. MFA is the single most effective control against account takeover, and app passwords exist precisely so you don’t have to choose. Ten minutes generating app passwords beats explaining a business email compromise to your clients.

My account keeps locking. How do I find what’s causing it?

Something is retrying an old password on a loop. Common culprits: an old phone in a drawer, a tablet, a scanner or copier configured to email scans, a CRM or invoicing tool with saved SMTP credentials, or a former employee’s device. Check the sign-in logs for the source IP and user agent. Then either update or remove the offending configuration – resetting the password again just restarts the cycle.

Book online in 2 minutes

Talk to a GoProIT technician

Pick a time that suits you. A technician calls you at the start time; for support sessions they send a secure link, and nothing happens on your computer until you approve it. Monday to Friday 8am to 8pm Eastern.

Secure checkout by Stripe. Free cancellation up to 2 hours before your session.

Still stuck? We can fix it remotely for $59 • IT help Mon–Fri 8am–8pm ET
📞 Call (844) 734-1288 WhatsApp Book a $59 fix
WhatsApp us(202) 960-2022 · messages