[kmailtransport] [Bug 500123] SMTP XOAUTH2 fails to auth after period of time when using outlook.com
Arthur Kasimov
bugzilla_noreply at kde.org
Sun May 18 00:49:58 BST 2025
https://bugs.kde.org/show_bug.cgi?id=500123
Arthur Kasimov <kodemeister at outlook.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kodemeister at outlook.com
--- Comment #4 from Arthur Kasimov <kodemeister at outlook.com> ---
I also ran into the same issue. Indeed, the OAuth2 access token expires after
several hours, but KMail never attempts to refresh it.
The workaround is to delete the access token in KWalletManager (mailtransports
-> Binary Data -> some_id). This forces a fresh authentication via the browser.
Unfortunately, this only works for several hours. After that you'll need to
reset the access token again.
kmailtransport triggers the token refresh only when ksmtp returns
KSmtp::LoginJob::TokenExpired error. In turn, ksmtp returns this error when the
server responds with a 334 reply containing a base64-encoded SASL challenge.
This works well with GMail but not with Outlook. I guess either kmailtransport
or ksmtp should be fixed to handle Outlook's specific behavior.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list