
Change the offending username to contain the full email address. Search for "username" - this should bring up a few results, one or more of which may have the value "myaccount" instead of For me, this was "". Go to the config editor (Preferences -> Advanced -> Config Editor). Those changes may be enough to solve your problem, or they may be necessary but not sufficient requirements for my solution to work. If you do so, it adds a new entry to the list, with the username "myaccount" instead of This was the last thing I tried after a wide range of failed attempts at following suggestions - so I'd already tried everything from enabling IMAP in gmail to removing saved passwords to editing the configurations and setting the property. If you manually edit the username (right click -> Edit Username), Thunderbird will prompt you to login again. When you show the saved passwords (Preferences -> Security -> Saved passwords), it lists your username as "myaccount" instead of - it does not show the full email address. Removing passwords has allowed you to log in again, but the problem persists. You've selected Oauth2 as the authentication scheme and tried logging in with Oauth2.
Try my suggestion if the following applies: For me, no other suggestions worked, but put me on the right path (although not exactly my situation).