Bug 457233 - Please provide oauth2 login for IMAP - not just Gmail
Summary: Please provide oauth2 login for IMAP - not just Gmail
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 5.19.3
Platform: Ubuntu Linux
: HI wishlist with 160 votes (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL: https://learn.microsoft.com/en-us/exc...
Depends on:
Reported: 2022-07-28 11:15 UTC by François Bissey
Modified: 2023-01-28 04:53 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2022-07-28 11:15:53 UTC
My organisation has moved to office365 but has not enabled EWS. This make the akonadi EWS component useless to me.
On the other hand they have enabled IMAP with OAUTH2. Thunderbird support IMAP+OAUTH2 for both receiving and sending and therefore works in my use case. kmail sadely doesn't as I cannot select oauth2 with an IMAP server.
Comment 1 Amand Tihon 2022-10-24 12:12:39 UTC
With Microsoft having started to disable all forms of basic auth for their office365 tenants, I think this bug deserves a higher importance.
Comment 2 Nicolás Alvarez 2022-10-27 15:51:31 UTC
Given that Office365 situation, I agree. I think it's still "wishlist" because it's a feature request, but I'll increase from "normal" to "high".
Comment 3 Boba Fit 2022-11-01 18:43:05 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Boba Fit 2022-11-01 19:19:46 UTC
Does this commit is a good base to implement it?
It was written by @dvratil
Comment 5 Jerôme Pouiller 2023-01-20 10:35:00 UTC
Does someone tried https://github.com/simonrob/email-oauth2-proxy ?
Comment 6 Aaron Williams 2023-01-21 09:29:03 UTC
I need this badly. Our IT department just changed the settings so I can no longer access my email on Office365 via IMAP. In addition, EWS is also failing since none of the user agents are supported (and there's a bug where it's impossible to override it for the first time, but this is unrelated to IMAP).
Comment 7 Aaron Williams 2023-01-28 04:53:51 UTC
Since Microsoft now mandates the use of oauth2 for IMAP with office365, this bug is now more important than ever. It is now impossible to use KMail/Kontact with Office365 without jumping through some major hoops with proxies, etc. Many corporate organizations use office365. I'm now stuck with Thunderbird for my work email and I am not at all happy about running that CPU pig (CPU usage is pegged at well over 100% at all times).