imap and smtp to outlook.office365.com over oauth2 problem

Bug #2003406 reported by Joolz
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
thunderbird (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Good morning,

Since yesterday january 18 2023 Thunderbird cannot connect to my company email anymore, both imap and smtp. Mail server for imap is outlook.office365.com, port 993, SSL/TLS, OAuth2. For smtp: smtp.office365.com port 587, STARTTLS, OAuth2.

On january 17 and before, all was working well with the same settings. Thunderbird version is 102.7.0 (64-bit) on an up-to-date Ubuntu 22.10. When I start TB from a terminal, I get this:

```
[ImapModuleLoader] Using nsImapService.cpp
[NntpModuleLoader] Using NntpService.jsm
[Pop3ModuleLoader] Using Pop3Service.jsm
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
[calBackendLoader] Using Thunderbird's ical.js backend
console.debug: "Successfully loaded OpenPGP library librnp.so version 0.16.2+git20220922.298ad98b.MZLA from /usr/lib/thunderbird/librnp.so"
console.debug: "Found 0 public keys and 0 secret keys (0 protected, 0 unprotected)"
console.debug: "Successfully loaded optional OpenPGP library libgpgme.so.11 from system's standard library locations"
console.debug: "gpgme version: 1.17.1"
console.warn: services.settings: Failed to load last_modified.json: TypeError: NetworkError when attempting to fetch resource.
console.debug: "Trying to load /usr/lib/thunderbird/libotr.so"
console.debug: "Trying to load libotr.so from system's standard library locations"
console.debug: "Trying to load libotr.so.5 from system's standard library locations"
console.debug: "Trying to load libotr.so from system's standard library locations"
console.log: (new Error("Cannot load required OTR library", "resource:///modules/OTRLib.jsm", 109))
JavaScript error: resource:///modules/OAuth2.jsm, line 168: NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name]
JavaScript error: resource:///modules/OAuth2.jsm, line 168: NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name]
JavaScript error: resource:///modules/OAuth2.jsm, line 168: NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name]
```

That last bit (to me) seems to indicate a client side (TB) issue. If anybody knows or can make a fix, that would be great, I much prefer TB to the MS web interface.

Best,

Joolz.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in thunderbird (Ubuntu):
status: New → Confirmed
Revision history for this message
Joolz (joolz) wrote :

Some extra information: `sudo apt-get install libotr5` doesn't help.

Revision history for this message
Matt Blissett (matt-blissett) wrote :

In case anyone else comes across this, the recommendation from the Thunderbird developers is to downgrade: https://blog.thunderbird.net/2023/01/important-message-for-microsoft-office-365-enterprise-users/

e.g. sudo apt-get install thunderbird=1:102.4.2+build2-0ubuntu0.22.04.1

With 1:102.7.1+build1-0ubuntu0.22.04.1~mt1 I had different line numbers in the error:

JavaScript error: resource:///modules/OAuth2.jsm, line 170: NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name]

Revision history for this message
Cédric Fournier (cfoufou) wrote :

In case you install thunderbird thru snap, you can upgrade to beta

sudo snap refresh thunderbird --channel=latest/beta

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.