Skip to content
MAILRIVA

“[AUTHENTICATIONFAILED] Invalid credentials (Failure)”: causes and fixes

The mail server rejected your user name or password. You see the message with Gmail, Yahoo or iCloud, in Outlook, on an iPhone or iPad, or in Mailriva. Here is what causes it at each provider and what to do.

Updated:

In short

  • The server rejected your user name or password.
  • The code alone doesn’t tell you whether the password is wrong or an app password is missing. The IMAP standard (RFC 5530) only says the server is unwilling to say why.
  • So check the causes for your provider: with Gmail, Yahoo and iCloud it is usually a missing, mistyped or invalid app password.

What the message means

“[AUTHENTICATIONFAILED] Invalid credentials” is the IMAP server’s answer to your sign-in, often with the addition “(Failure)”. For Google the wording is documented: an Atlassian support article lists it among its Gmail errors, and Google’s Gmail help names the messages “Username and password not accepted” and “Invalid credentials”. User reports in forums show the same text with Yahoo.

RFC 5530 defines the code AUTHENTICATIONFAILED as “Authentication failed for some reason on which the server is unwilling to elaborate”, typically including “unknown user” and “bad password”. Because the message is that general, there are several possible causes. The table lists them by provider.

What causes it

ProviderPossible causes
GmailYou entered your normal password instead of an app password. Or the app password was revoked because you changed your Google password. Or a typo.
YahooYahoo blocks outdated sign-in methods and wants an app password for email apps. An app password stays valid after you change your Yahoo password and only becomes invalid when you delete it. Yahoo’s help lists “Server password has changed” and “Authentication failed” as the messages third-party apps show.
Comcast.net (after the move to Yahoo)Once your mailbox has moved to Yahoo Mail, sign-in goes through Yahoo. If your Comcast.net password doesn’t work in an email app, Yahoo says to use an app password.
iCloudYou need an app-specific password, and two-factor authentication must be on for that. If you change your Apple Account password, all app-specific passwords are revoked. Sometimes only the part before “@icloud.com” works as the user name.
Zoho MailZoho lists “Authentication Failure for” followed by your email address, and “Invalid credentials” in its troubleshooting table: test the password in webmail, and with two-factor authentication on use an application-specific password.

On iPhone or iPad

The iPhone shows you the server’s message as it is. The fix is the provider’s app password, which you then enter as the password in the account settings on your iPhone. We don’t give iOS menu paths because they differ by iOS version.

For Yahoo, Yahoo’s help says that if re-entering the password doesn’t work on iOS, you may need to remove and re-add the account. For Gmail, Google recommends “Sign in with Google” over an app password if your app offers it when you add the account.

Fix it for Gmail

The steps come from Mailriva’s provider help and apply to any program. “Here” means the password field of your program.

First check that the email address is right and the app password was pasted completely. If you changed your Google password, Google revoked your app passwords; create a new one.

  1. 1

    Turn on 2-Step Verification

    Turn on 2-Step Verification in your Google account if it is still off.

  2. 2

    Create an app password

    Create an app password (name it, for example, “Mailriva”). It has 16 characters and is shown only once.

  3. 3

    Enter the app password

    Enter this app password here instead of your normal password. Mailriva removes the spaces itself.

Fix it for Yahoo

If an existing app password stops working, delete it at Yahoo and create a new one. Yahoo’s help says this for signing in again.

  1. 1

    Create an app password

    Open Account security in your Yahoo account and, under “External connections”, choose “Create app password”.

  2. 2

    Name it

    Enter a name (for example “Mailriva”) and generate the password. This only works in a browser where you have been signed in to Yahoo for a while, not in an incognito window.

  3. 3

    Enter the app password

    Enter this password here, not your normal Yahoo password.

Fix it for Comcast.net after the move

Xfinity moves Comcast.net mailboxes to Yahoo Mail at different times in 2025 and 2026. After the move, Yahoo’s help gives these values for email apps: IMAP server imap.mail.yahoo.com, port 993, SSL/TLS, and your full @comcast.net address as the user name. If your Comcast.net password is not accepted, create a Yahoo app password as shown above. Mailriva lets you enter a server by hand if you need these values.

Fix it for iCloud

  1. 1

    Check two-factor authentication

    Two-factor authentication must be on for your Apple Account.

  2. 2

    Create an app-specific password

    Sign in at account.apple.com and create an app-specific password under “Sign-In and Security”.

  3. 3

    Enter the password

    Enter it here. If it does not work, use only the part before “@icloud.com” as the user name.

Check again

Enter the new app password in your program and let it reconnect. In Mailriva you click “Test connection”. Mailriva shows these steps next to the password field. If a sign-in fails, the error message has a “How to” button that opens them.

Too many attempts? Don’t retry in quick succession; wait a while. Mailriva suggests about 30 minutes. Google also allows at most 15 email clients on one Gmail account at a time, so disconnect devices you don’t use.

If it still does not work

Frequently asked questions

What does “Invalid credentials (Failure)” mean?

The server rejected your sign-in details. The reason can be a wrong password, but also a missing or revoked app password. The server code doesn’t say which.

My password is correct. Why does this still happen?

Because providers like Google, Yahoo and Apple don’t accept your normal password in email apps, only an app password. A correct normal password doesn’t help there.

My Yahoo app password stopped working. What now?

Delete it at Yahoo, create a new one and enter it in your program. According to Yahoo, an app password only becomes invalid when you delete it, not when you change your password.

My iPhone shows this for Gmail. What now?

Create an app password at Google and enter it as the password for your Gmail account. If your app offers “Sign in with Google”, Google recommends that instead. We don’t give iPhone menu paths because they differ by iOS version.

Sources

Mailbox connected? Back it up or move it

With the right app password you connect your mailbox to Mailriva. Free up to 1 GB · Mac & Windows · read-only