X
Tap here to go to the mobile version of the site.

Support Forum

Need help to debug imap authentication failure with gmail.

Posted

I seem to be experiencing an issue similar to here:

https://support.google.com/mail/thread/4528103?msgid=19227686

Only in my case none of the workarounds seem to fix it. I was already using an app password and yesterday (2019-12-03) it suddenly stopped. Regenerating the app pass word doesn't help and neither does switching to oauth2. When I try oauth2 I get all the right login screens and I get the google validation but thunderbird sees some sort of failure. When I use app password I just get that the password is incorrect and to retry.

I'm using TB 68.2.1 on Ubuntu LTS 18.04.3

How can I get more debugging information on what might be happening?

Thanks.

I seem to be experiencing an issue similar to here: https://support.google.com/mail/thread/4528103?msgid=19227686 Only in my case none of the workarounds seem to fix it. I was already using an app password and yesterday (2019-12-03) it suddenly stopped. Regenerating the app pass word doesn't help and neither does switching to oauth2. When I try oauth2 I get all the right login screens and I get the google validation but thunderbird sees some sort of failure. When I use app password I just get that the password is incorrect and to retry. I'm using TB 68.2.1 on Ubuntu LTS 18.04.3 How can I get more debugging information on what might be happening? Thanks.
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36

More Information

sfhowes
  • Top 10 Contributor
1843 solutions 9104 answers

If you have OAuth authentication with an IMAP gmail account, don't enter the app password when the OAuth window appears; just enter the account password. An app password is only necessary if you've applied 2-step verification and are using 'normal password' authentication.

http://kb.mozillazine.org/Using_Gmail_with_Thunderbird_and_Mozilla_Suite

If you change app passwords or the regular account password on the gmail site, delete the old password in Edit/Preferences/Security/Passwords/Saved Passwords, restart TB, and enter the new one when prompted.

If you have OAuth authentication with an IMAP gmail account, don't enter the app password when the OAuth window appears; just enter the account password. An app password is only necessary if you've applied 2-step verification and are using 'normal password' authentication. http://kb.mozillazine.org/Using_Gmail_with_Thunderbird_and_Mozilla_Suite If you change app passwords or the regular account password on the gmail site, delete the old password in Edit/Preferences/Security/Passwords/Saved Passwords, restart TB, and enter the new one when prompted.
Was this helpful to you? 1
Quote

Question owner

Thanks,

I do have 2FA active on this account. I was using app password successfully before it stopped working. I only tried the oauth2 after a some googling when app password didn't work.

I'm using the correct generated password for app password when its set to "normal password" and my gmail account password for oauth2 when I set it to oauth2. The oauth2 login works and google indicates that thunderbird has access but TB still fails with a authentication failure.

I have already deleted the previous app password in saved password and regenerated a new one. TB asks for a new password when it fails so I've done it that way as well.

This could still be user error but I don't remember doing anything before it stopped working and I believe I have all the settings correct.

Do you know how I can look at more debug info for whats is happening when the IMAP login is occurring? That way I can verify that what is happening matches my expectations.

Thanks, I do have 2FA active on this account. I was using app password successfully before it stopped working. I only tried the oauth2 after a some googling when app password didn't work. I'm using the correct generated password for app password when its set to "normal password" and my gmail account password for oauth2 when I set it to oauth2. The oauth2 login works and google indicates that thunderbird has access but TB still fails with a authentication failure. I have already deleted the previous app password in saved password and regenerated a new one. TB asks for a new password when it fails so I've done it that way as well. This could still be user error but I don't remember doing anything before it stopped working and I believe I have all the settings correct. Do you know how I can look at more debug info for whats is happening when the IMAP login is occurring? That way I can verify that what is happening matches my expectations.
Was this helpful to you?
Quote
sfhowes
  • Top 10 Contributor
1843 solutions 9104 answers

Helpful Reply

The Gmail article cited above suggests deleting google cookies if the app password fails to work. But you may just be facing Google's effect on accounts where the user is changing the authentication; it may become accessible after a day or so. The article also recommends not using 2-step verification.

You might find some debug info in Tools/Developer Tools/Error Console, or by using more complex logging.

The Gmail article cited above suggests deleting google cookies if the app password fails to work. But you may just be facing Google's effect on accounts where the user is changing the authentication; it may become accessible after a day or so. The article also recommends not using 2-step verification. You might find some debug info in Tools/Developer Tools/Error Console, or by using more complex [http://kb.mozillazine.org/Session_logging_for_mail/news logging].
Was this helpful to you? 1
Quote

Question owner

I don't have any choice on 2FA. It's set by my organization. However, I have figured out the app password issue. Turns out that same said organization disabled "less secure apps" yesterday. So that is what broke my app password access. :(

Its now re-enabled and app password is working again via "normal password." Strange that gmail let me make a new app password even though the entire feature was disabled.

OAuth2 however, still does not seem to work. I'll have to sort that out so that "less secure apps" can eventually be disabled. But I suppose that should be dealt with in another ticket.

Thanks for your help.

I don't have any choice on 2FA. It's set by my organization. However, I have figured out the app password issue. Turns out that same said organization disabled "less secure apps" yesterday. So that is what broke my app password access. :( Its now re-enabled and app password is working again via "normal password." Strange that gmail let me make a new app password even though the entire feature was disabled. OAuth2 however, still does not seem to work. I'll have to sort that out so that "less secure apps" can eventually be disabled. But I suppose that should be dealt with in another ticket. Thanks for your help.
Was this helpful to you?
Quote
everettrl338 0 solutions 1 answers

I have 3 gmail email accounts. @ of them seem to perform normally. However the 3rd will not load. the following message appears:

"Authentication failure while connecting to server IMAP.gmail.com

Am I experiencing the problem being referred to in this thread or is it something else. Some of the suggestions were helpful in reinstalling the 2 working accounts, but no help for the 3rd.

I have 3 gmail email accounts. @ of them seem to perform normally. However the 3rd will not load. the following message appears: "Authentication failure while connecting to server IMAP.gmail.com Am I experiencing the problem being referred to in this thread or is it something else. Some of the suggestions were helpful in reinstalling the 2 working accounts, but no help for the 3rd.
Was this helpful to you?
Quote
sfhowes
  • Top 10 Contributor
1843 solutions 9104 answers

What could possibly be different between the 2 working accounts and the 3rd one? Make sure the authentication is OAuth2 and enter the regular account password when the OAuth browser window appears. Make sure that TB is 60.9.1 or 68.3.1 when adding new gmail accounts. Confirm the password by logging in on gmail.com.

What could possibly be different between the 2 working accounts and the 3rd one? Make sure the authentication is OAuth2 and enter the regular account password when the OAuth browser window appears. Make sure that TB is 60.9.1 or 68.3.1 when adding new gmail accounts. Confirm the password by logging in on gmail.com.
Was this helpful to you?
Quote
Ted Burnham 0 solutions 7 answers

I have 4 Gmail accounts with 3 working and 1 which reports authentication failure server imap.gmail.com in TB

Settings on all accounts are the same

I have tried various workarounds as suggested earlier but none work. The account is working when I login to Gmail via Firefox.

TB 68.3.1 Windows 10 Pro.

Help would be much appreciated Ted Burnham 4th January 2020

I have 4 Gmail accounts with 3 working and 1 which reports authentication failure server imap.gmail.com in TB Settings on all accounts are the same I have tried various workarounds as suggested earlier but none work. The account is working when I login to Gmail via Firefox. TB 68.3.1 Windows 10 Pro. Help would be much appreciated Ted Burnham 4th January 2020
Was this helpful to you?
Quote
sfhowes
  • Top 10 Contributor
1843 solutions 9104 answers

Ted Burnham said

I have 4 Gmail accounts with 3 working and 1 which reports authentication failure server imap.gmail.com in TB Settings on all accounts are the same I have tried various workarounds as suggested earlier but none work. The account is working when I login to Gmail via Firefox. TB 68.3.1 Windows 10 Pro.

Is the authentication for the non-working account 'normal password' or OAuth2? Tools/Options/Security/Passwords/Saved Passwords, delete the passwords for the non-working account, for incoming and smtp, restart TB, enter the password when prompted. The password you enter depends on the authentication; OAuth2 is simplest, just use the regular password.

''Ted Burnham [[#answer-1278363|said]]'' <blockquote> I have 4 Gmail accounts with 3 working and 1 which reports authentication failure server imap.gmail.com in TB Settings on all accounts are the same I have tried various workarounds as suggested earlier but none work. The account is working when I login to Gmail via Firefox. TB 68.3.1 Windows 10 Pro. </blockquote> Is the authentication for the non-working account 'normal password' or OAuth2? Tools/Options/Security/Passwords/Saved Passwords, delete the passwords for the non-working account, for incoming and smtp, restart TB, enter the password when prompted. The password you enter depends on the authentication; OAuth2 is simplest, just use the regular password.
Was this helpful to you?
Quote
Ted Burnham 0 solutions 7 answers

Authentication is OAuth2 - password has been changed in Gmail. Still get the same problem

Authentication is OAuth2 - password has been changed in Gmail. Still get the same problem
Was this helpful to you?
Quote
sfhowes
  • Top 10 Contributor
1843 solutions 9104 answers

Ted Burnham said

Authentication is OAuth2 - password has been changed in Gmail. Still get the same problem

When you changed the password in Gmail, did you remove the old OAuth2 token, and the imap://and smtp:// passwords, in TB Options?

''Ted Burnham [[#answer-1278372|said]]'' <blockquote> Authentication is OAuth2 - password has been changed in Gmail. Still get the same problem </blockquote> When you changed the password in Gmail, did you remove the old OAuth2 token, and the imap://and smtp:// passwords, in TB Options?
Was this helpful to you?
Quote
Ted Burnham 0 solutions 7 answers

I removed the account from TB and attempted to create an entry in TB for the account.

I removed the account from TB and attempted to create an entry in TB for the account.
Was this helpful to you?
Quote
sfhowes
  • Top 10 Contributor
1843 solutions 9104 answers

If by 'create an entry' you mean add the password in Options, that's not possible. Restart TB, and you will be prompted to enter the password next time you connect to the account, at which point you can check the box to have it stored in Options.

If by 'create an entry' you mean add the password in Options, that's not possible. Restart TB, and you will be prompted to enter the password next time you connect to the account, at which point you can check the box to have it stored in Options.
Was this helpful to you?
Quote
Ted Burnham 0 solutions 7 answers

Attached is copy of the settings for the account in question

Attached is copy of the settings for the account in question
Was this helpful to you?
Quote
sfhowes
  • Top 10 Contributor
1843 solutions 9104 answers

The settings are correct, but does the error appear when you try to connect to imap.gmail.com, i.e. receive mail, or to smtp.gmail.com, i.e. send mail? If you select the account in the left pane of Account Settings, is the Outgoing Server (SMTP) in the right pane the Default, or is it an smtp.gmail.com that has the same User Name and password as the left-pane account?

The settings are correct, but does the error appear when you try to connect to imap.gmail.com, i.e. receive mail, or to smtp.gmail.com, i.e. send mail? If you select the account in the left pane of Account Settings, is the Outgoing Server (SMTP) in the right pane the Default, or is it an smtp.gmail.com that has the same User Name and password as the left-pane account?
Was this helpful to you?
Quote
Ted Burnham 0 solutions 7 answers

I get the IMAP error when attempting to receive mail. When trying to send I get "unexpected error 80004005. No description available, coud not send using Outgoing server SMTP. Please verify that SMTP settings are correct.

It would appear that my settings are correct

I get the IMAP error when attempting to receive mail. When trying to send I get "unexpected error 80004005. No description available, coud not send using Outgoing server SMTP. Please verify that SMTP settings are correct. It would appear that my settings are correct
Was this helpful to you?
Quote
Ted Burnham 0 solutions 7 answers

I will be closing in a few minutes and will reopen tomorrow a.m. (UK time)

I will be closing in a few minutes and will reopen tomorrow a.m. (UK time)
Was this helpful to you?
Quote
Ted Burnham 0 solutions 7 answers

I don't know how but I have resolved the issue.

Many thanks for your help

I don't know how but I have resolved the issue. Many thanks for your help
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.