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

Accessing Gmail

  • 1 reply
  • 0 have this problem
  • 6 views
  • Last reply by Stans

more options

I used to have no problem accessing gmail until they stopped allowing less secure app access. Every since then whenever I tried to access my gmail accounts with Thunderbird I get the message "Authentication failure while connecting to server imap.gmail.com". I have done research and made sure I have all the correct settings regarding OAuth2 and cookies and whatever in both Gmail and Thunderbird. But I have never been able to get it to work.

Then suddenly out of the blue I get this login screen for Google that opens in a new Thunderbird window that I haven't seen before. I mean I hadn't even upgraded or restarted Thunderbird for a very long time and it's just been opened in the background working away. So who knows what happened to make that appear. In any case, after I logged into my Google account using that Thunderbird window, and went through the million security notifications from Google about it, I was actually able to access my Gmail account at last.

The trouble now is that I have several Gmail accounts. And I can only access one this way. The others still give me that authentication error. I have checked to make sure that all account settings are exactly the same, and they are.

What can I do to get my other Gmail accounts working in Thunderbird? Is there anyway I can trigger Thunderbird into giving me that Google login windows for my other accounts?

I used to have no problem accessing gmail until they stopped allowing less secure app access. Every since then whenever I tried to access my gmail accounts with Thunderbird I get the message "Authentication failure while connecting to server imap.gmail.com". I have done research and made sure I have all the correct settings regarding OAuth2 and cookies and whatever in both Gmail and Thunderbird. But I have never been able to get it to work. Then suddenly out of the blue I get this login screen for Google that opens in a new Thunderbird window that I haven't seen before. I mean I hadn't even upgraded or restarted Thunderbird for a very long time and it's just been opened in the background working away. So who knows what happened to make that appear. In any case, after I logged into my Google account using that Thunderbird window, and went through the million security notifications from Google about it, I was actually able to access my Gmail account at last. The trouble now is that I have several Gmail accounts. And I can only access one this way. The others still give me that authentication error. I have checked to make sure that all account settings are exactly the same, and they are. What can I do to get my other Gmail accounts working in Thunderbird? Is there anyway I can trigger Thunderbird into giving me that Google login windows for my other accounts?

Chosen solution

After changing authentication method to OAuth2 for all Gmail accounts, make sure to delete ALL passwords for those accounts from Thunderbird's password vault. I had to do this for some accounts, as Thunderbird would try to use the stored password instead of the stored OAuth2 token (also stored in the same password vault), which wouldn't work with OAuth2 authentication. Refer to Password Manager - Remember, delete and change passwords in Thunderbird for details. After that, you have to restart Thunderbird.

Read this answer in context 👍 1

All Replies (1)

more options

Chosen Solution

After changing authentication method to OAuth2 for all Gmail accounts, make sure to delete ALL passwords for those accounts from Thunderbird's password vault. I had to do this for some accounts, as Thunderbird would try to use the stored password instead of the stored OAuth2 token (also stored in the same password vault), which wouldn't work with OAuth2 authentication. Refer to Password Manager - Remember, delete and change passwords in Thunderbird for details. After that, you have to restart Thunderbird.