This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Unable to configure Gmail - says credentials invalid

  • 6 replies
  • 10 have this problem
  • 4 views
  • Last reply by christ1

more options

I am trying to configure my Gmail account. (Info: Thunderbird 52.1.1, Ubuntu 16.04). The error is "Configuration could not be verified - is the username or password wrong?. Note that this error comes after a very long time (4-6 minutes) after clicking the "Done" button.

I have checked the following: 1. Username & password are correct. Triple checked. (username is of the form myname@gmail.com, NOT just myname) 2. I do NOT have 2-step verification in Gmail. Just the standard password login. 3. IMAP is set ON in Gmail cog wheel settings. 4. Less-secure apps are set to ON. 5. It's an Ubuntu system, so NO antivirus/firewall software is present.

I have tried the following: 1. Changed the authentication method from OAuth2 to Normal Password (for both incoming(IMAP) and outgoing(SMTP)). Still didn't work - re-test fails. 2. In the manual config option, all addresses/ports have been verified. (Screenshot attached) 3. Tried this "trick" suggested here: forums.mozillazine.org/viewtopic.php?f=39&t=2095583

I still have the same error. Kindly help.

I am trying to configure my Gmail account. (Info: Thunderbird 52.1.1, Ubuntu 16.04). The error is "Configuration could not be verified - is the username or password wrong?. Note that this error comes after a very long time (4-6 minutes) after clicking the "Done" button. I have checked the following: 1. Username & password are correct. Triple checked. (username is of the form myname@gmail.com, NOT just myname) 2. I do NOT have 2-step verification in Gmail. Just the standard password login. 3. IMAP is set ON in Gmail cog wheel settings. 4. Less-secure apps are set to ON. 5. It's an Ubuntu system, so NO antivirus/firewall software is present. I have tried the following: 1. Changed the authentication method from OAuth2 to Normal Password (for both incoming(IMAP) and outgoing(SMTP)). Still didn't work - re-test fails. 2. In the manual config option, all addresses/ports have been verified. (Screenshot attached) 3. Tried this "trick" suggested here: forums.mozillazine.org/viewtopic.php?f=39&t=2095583 I still have the same error. Kindly help.
Attached screenshots

Modified by vin007

Chosen solution

I have figured out the problem - it's my ISP. I am in a university campus and they aparently don't have "open ports" for Thunderbird, etc.. I don't know why or what it means, but it's not a TBird issue.

Thanks.

Read this answer in context 👍 2

All Replies (6)

more options
I have tried the following: 1. Changed the authentication method from OAuth2 to Normal Password (for both incoming(IMAP) and outgoing(SMTP)).

For IMAP as well as SMTP you should stick with OAuth2.

Screenshot attached

The screenshot doesn't load for me. In any case, use the server settings as per Google's advice. https://support.google.com/mail/answer/7126229?hl=en

3. Tried this "trick"

There are no magic tricks. Follow the Google troubleshooting steps. https://support.google.com/accounts/answer/6009563

Note that this error comes after a very long time (4-6 minutes) after clicking the "Done" button.

The long timeout looks a bit suspicious. Is there a networking problem? Do you use a third party firewall?

Also have a look at these troubleshooting steps. https://support.mozilla.org/kb/cannot-receive-messages

more options

Thanks for the reply christ1.

I have checked that the configuration is as per google's advice.

As for the troubleshooting tips given by Google, their first advice is to turn ON less secure apps, which has already been done. Their second advice is regarding two-step verification process, which is NOT even enabled in my case. My gmail login is done using only the password. So this step doesn't help.

As for the troubleshooting steps on https://support.mozilla.org/kb/cannot-receive-messages, none of it helps, either.

No, I don't have any firewalls on the system, also there are no network issues at all.

PS: I'm able to see the image attachment.

Modified by vin007

more options
As for the troubleshooting tips given by Google, their first advice is to turn ON less secure apps, which has already been done.

This step is listed underneath the section 'Your device or app might not support Google’s security standards'.

While I admit this may not be obvious, 'OAuth2' authentication is what's considered as the Google’s security standard. In other words, with OAuth2 the 'less secure apps' setting doesn't apply.

The next section underneath '2-Step Verification is not supported by the app' doesn't apply either, because with OAuth2 Thunderbird also supports 2-Step verification natively.

So what's left being relevant in your case is the section underneath 'Still having trouble signing in?'.

Did you check these steps?

Did you create an app password for Thunderbird at some point, and trying to use that? Use the main account password.

Can you confirm your account is to be set up as IMAP?

Are you using the Thunderbird version provided by your distribution, or the vanilla version from Mozilla?

more options

Thanks again, christ1.

Yeah, I have checked the steps under "Still having trouble signing in?". Those steps did not work. Still the same error after about 4-5 minutes. (in fact this is nearly the step described in the "trick" I was talking about..)

No, I have never created an App pasword. I am entering the main password. My password has 14 characters with one special character (exclamation mark !) in it. I did read a post regarding a problem with some special characters. Can you please confirm this could not be the problem?

Yes, I am trying to configure it as an IMAP account. The incoming server address is imap.gmail.com.

I have tried both versions. My distribution provided TBird 45 (which gave the same error). I am now trying the steps using TBird 52.1.1 downloaded from the official website.

Modified by vin007

more options

Chosen Solution

I have figured out the problem - it's my ISP. I am in a university campus and they aparently don't have "open ports" for Thunderbird, etc.. I don't know why or what it means, but it's not a TBird issue.

Thanks.

more options

Good. Please mark your post as 'Solution' for this topic. Thank you.