Office360 and OAuth2 not working with IMAP

User Help for Seamonkey and Mozilla Suite
Posts: 4
Joined: February 14th, 2007, 8:26 am

Post Posted January 11th, 2021, 7:39 pm

My company is in the process of switching to Exchange on
I have been using our beloved SeaMonkey with our old e-mail infrastructure and Mozilla since before SeaMonkey.
Unfortunately, I cannot get SeaMonkey to work with our SSO-enabled / OAuth2 authentication scheme on Office365 (via company login). :-(

I referenced this thread:

And this RFE:

I read elsewhere, that SeaMonkey 2.53.x picked up the above RFE, but it isn't working with Exchange on
When I try to use OAuth2 in SeaMonkey, I get a message that doesn't work with that authentication scheme.
When I try to use normal (basic) auth, with my password it doesn't work (not surprisingly, since my company insists on SSO via OAuth2).

I even went so far as to install Thunderbird 78.6.0, to confirm that the OAuth2 support works with my company's SSO handling and it does.
So I took that working profile from Thunderbird and copied it to SeaMonkey, and SeaMonkey understand the profile perfectly well, but the error message is the same:

"The IMAP server does not support the selected authentication method. Please change the 'Authentication method' in the 'Account Settings | Server settings'."

I even went so far as to access the webmail via SeaMonkey browser, and I authenticated all the way through to Outlook and told SeaMonkey to remember me / save my credentials, but unfortunately that was no help. :-(

I was really hoping that all that was done re: authenticating to would be stored in the way of cookies and such, so that the SeaMonkey mail client could utilize the same stored credentials for IMAP, but it isn't working that way.

Any advice?
Perhaps some hack to take the credentials from the browser and copy them to IMAP credentials in the profile (and/or cookies)?

Meanwhile, please advise how I can get further diag / debug logging on MacOS to aid in uncovering what exactly isn't working with the OAuth2 / SSO to

Posts: 4
Joined: February 14th, 2007, 8:26 am

Post Posted January 12th, 2021, 10:57 am

I referenced @frg's comment on a similar topic over here: viewtopic.php?f=3&t=3055147
Hoping @frg or another will have some insights on my post above. :S

Posts: 1009
Joined: December 15th, 2015, 1:20 pm

Post Posted January 13th, 2021, 1:26 pm

This needs a bunch of backports. Was only fixed for Thunderbird 77. The first batch will be in todays unofficial 2.53.7b1 pre build. If I manage I will do the remaining parts next but need to make sure caldav access is not affected.

In any case I can't test because I am staying away from google and ms stuff as far as I can :) So please test todays builds for regressions using OAuth2. It already added support for and using pop3 with OAuth2. Might work might not so keep the old one. Bill tested google mail briefly.


Posts: 1009
Joined: December 15th, 2015, 1:20 pm

Post Posted January 14th, 2021, 7:01 pm

The backports now landed. Prerelease builds are available at:

Unable to test. gmail still works but no one from the dev team has an office365 account. So please test and let us know. While it is prerelease code it is very stable and should cause not much problems. Still profile compatible with but Lightning needs to be reinstalled if for whatever reason you want to go back.

Posts: 714
Joined: December 13th, 2007, 8:54 am
Location: Vancouver Island BC

Post Posted January 16th, 2021, 9:32 am

Working fine for me as browser and email client, but I'm just using standard pop mail accounts with Rockland.web.

Return to SeaMonkey Support

Who is online

Users browsing this forum: No registered users and 1 guest