Søg i 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.

Læs mere

Can't add gmail account using default profile

  • 3 svar
  • 1 har dette problem
  • 1 visning
  • Seneste svar af ldywicki

more options

I have an akward problem with by gmail account which *was* handled by Thunderbird via IMAP with OAuth2 authentication.

A while ago I decided to do a test of two factor auth for google services, but eventually disabled it. My Thunderbird doesn't work since then. I was trying to add and remove account but without luck. Step by step description of the issue: 1. When I add account there is auto-discovery pick ups some server settings. 2. In debug console I can see: "status msg: Configuration found in Mozilla ISP database" 3. Server settings seems to be fine: ``` Incoming: imap, imap.gmail.com:993, SSL, auth: OAuth2, username: (redacted), password: not set Outgoing: smtp, smtp.gmail.com:465, SSL, auth: OAuth2, username: (redacted), password: not set Incoming alt: pop3, pop.gmail.com:995, SSL, auth: plain, username: (redacted), password: not set ``` 4. When I click "done" I do not see no browser popup to enter user/password and grant access to Thunderbird to my gmail mailbox. 5. Thunderbird shows "Unable to log in at server. Probably wrong configuration, username or password"

Recently I made a new profile and tried to add a bogus account within same domain (we use gsuite) and it worked. More over, my own account also have worked. When I get back to my default profile, enter my account details it doesn't work. Turning into "advanced mode" which adds account anyways doesn't help. I can edit settings but I *never* get oauth popup. More interestingly I see in console log requests end up with no errors.

``` 2020-01-07 15:44:24 mail.setup INFO Create button clicked 2020-01-07 15:44:24 mail.setup WARN spinner start checking_password 2020-01-07 15:44:24 mail.setup INFO status msg: Checking password… 2020-01-07 15:44:24 mail.setup INFO verify config: Incoming: imap, imap.gmail.com:993, SSL, auth: OAuth2, username: (redacted)@xyz.com, password: not set Outgoing: Use existing server smtp5 Incoming alt: pop3, pop.gmail.com:995, SSL, auth: plain, username: (redacted), password: not set 2020-01-07 15:44:24 mail.setup INFO Setting incoming server authMethod to 10 2020-01-07 15:44:24 mail.setup INFO Saving oauth parameters for issuer accounts.google.com 2020-01-07 15:44:24 mail.setup INFO OAuth2 issuer, scope is accounts.google.com, https://mail.google.com/ 2020-01-07 15:44:24 mail.setup INFO verifyLogon for server at imap.gmail.com XUL box for statusbarpanel element contained an inline #text child, forcing all its children to be wrapped in a block. 3 messenger.xul XHR POST https://www.googleapis.com/oauth2/v3/token [HTTP/1.1 200 OK 130ms]

XUL box for statusbarpanel element contained an inline #text child, forcing all its children to be wrapped in a block. messenger.xul 2020-01-07 15:44:25 mail.setup WARN error Unable to log in at server. Probably wrong configuration, username or passwor ```

The XHR POST request results in HTTP 200 and valid access token.

Please help me navigating the issue as it drives me nuts for quite a while. I can't work-around it with existing help articles and standard remove-add again method doesn't work any more.

Best, Łukasz

I have an akward problem with by gmail account which *was* handled by Thunderbird via IMAP with OAuth2 authentication. A while ago I decided to do a test of two factor auth for google services, but eventually disabled it. My Thunderbird doesn't work since then. I was trying to add and remove account but without luck. Step by step description of the issue: 1. When I add account there is auto-discovery pick ups some server settings. 2. In debug console I can see: "status msg: Configuration found in Mozilla ISP database" 3. Server settings seems to be fine: ``` Incoming: imap, imap.gmail.com:993, SSL, auth: OAuth2, username: (redacted), password: not set Outgoing: smtp, smtp.gmail.com:465, SSL, auth: OAuth2, username: (redacted), password: not set Incoming alt: pop3, pop.gmail.com:995, SSL, auth: plain, username: (redacted), password: not set ``` 4. When I click "done" I do not see no browser popup to enter user/password and grant access to Thunderbird to my gmail mailbox. 5. Thunderbird shows "Unable to log in at server. Probably wrong configuration, username or password" Recently I made a new profile and tried to add a bogus account within same domain (we use gsuite) and it worked. More over, my own account also have worked. When I get back to my default profile, enter my account details it doesn't work. Turning into "advanced mode" which adds account anyways doesn't help. I can edit settings but I *never* get oauth popup. More interestingly I see in console log requests end up with no errors. ``` 2020-01-07 15:44:24 mail.setup INFO Create button clicked 2020-01-07 15:44:24 mail.setup WARN spinner start checking_password 2020-01-07 15:44:24 mail.setup INFO status msg: Checking password… 2020-01-07 15:44:24 mail.setup INFO verify config: Incoming: imap, imap.gmail.com:993, SSL, auth: OAuth2, username: (redacted)@xyz.com, password: not set Outgoing: Use existing server smtp5 Incoming alt: pop3, pop.gmail.com:995, SSL, auth: plain, username: (redacted), password: not set 2020-01-07 15:44:24 mail.setup INFO Setting incoming server authMethod to 10 2020-01-07 15:44:24 mail.setup INFO Saving oauth parameters for issuer accounts.google.com 2020-01-07 15:44:24 mail.setup INFO OAuth2 issuer, scope is accounts.google.com, https://mail.google.com/ 2020-01-07 15:44:24 mail.setup INFO verifyLogon for server at imap.gmail.com XUL box for statusbarpanel element contained an inline #text child, forcing all its children to be wrapped in a block. 3 messenger.xul XHR POST https://www.googleapis.com/oauth2/v3/token [HTTP/1.1 200 OK 130ms] XUL box for statusbarpanel element contained an inline #text child, forcing all its children to be wrapped in a block. messenger.xul 2020-01-07 15:44:25 mail.setup WARN error Unable to log in at server. Probably wrong configuration, username or passwor ``` The XHR POST request results in HTTP 200 and valid access token. Please help me navigating the issue as it drives me nuts for quite a while. I can't work-around it with existing help articles and standard remove-add again method doesn't work any more. Best, Łukasz

Valgt løsning

Thank you @matt and @sfhowes for suggestions. Sadly none of above have worked for me. Your suggestions however Iead me to solution. What I did - I removed all cookies, checked access, even removed thunderbird from permitted apps in google settings without luck.

I went to saved passwords in options tab and found that despite of missing my account in the program there were still two passwords saved for it. One was a OAuth token, other was password text. I removed both, cleared cookies once again (just to be sure!) restarted program and then adding the account showed popup and whole process worked just fine.

Turns out that my issue was persisted password which haven't been removed from program at some stage or crash.

Thank you very much for your time and help. Hope that my answer will save somebody's time at some day too!

Cheers, Łukasz

Læs dette svar i sammenhæng 👍 0

Alle svar (3)

more options

have you actually checked on the google web site in your account (not your mail, your account) check what applications are authorized and what are not. When you turned off the two factor authentication you probably left something there that needs to be deleted.

Check that Thunderbird is accepting cookies. OAuth needs cookies to work. Options > Privacy. It is turned on by default, but it is also common for people to change the setting and for other software to do so.

more options

Keep in mind that OAuth2 authentication for gmail accounts in TB is only supported for IMAP accounts. For POP, use 'normal password', and if two-step verification is on the account, create an app password to enter in TB in place of the regular account password. You may also have to allow access by 'less-secure apps' in gmail settings for a POP account.

http://kb.mozillazine.org/Using_Gmail_with_Thunderbird_and_Mozilla_Suite

more options

Valgt løsning

Thank you @matt and @sfhowes for suggestions. Sadly none of above have worked for me. Your suggestions however Iead me to solution. What I did - I removed all cookies, checked access, even removed thunderbird from permitted apps in google settings without luck.

I went to saved passwords in options tab and found that despite of missing my account in the program there were still two passwords saved for it. One was a OAuth token, other was password text. I removed both, cleared cookies once again (just to be sure!) restarted program and then adding the account showed popup and whole process worked just fine.

Turns out that my issue was persisted password which haven't been removed from program at some stage or crash.

Thank you very much for your time and help. Hope that my answer will save somebody's time at some day too!

Cheers, Łukasz