OAUTH2 Not being picked up by clients #4110
Replies: 1 comment 5 replies
-
After a bit of research, I figured out that OAUTH2 only seems to work with Thunderbird with registered providers, aka providers that had their OAUTH2 related details hard-coded into the application (at least that's what I think). I can't find an email client that supports the OAuth 2.0 Dynamic Client Registration Protocol standard which would allow OAUTH2 with unregistered servers by exposing metadata on some agreed-upon URL ( So the question is, why does I hope I'm wrong since OAUTH2 authentication would be awesome to have working. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I enabled OAUTH2 via
mailserver.env
and provided an authentication URL, and when I manually tested it with telnet, everything works: the IMAP client announces the support for OAUTH2 bearer and XOAUTH2 and I was able to authenticate with it just fine with a manually constructed command (A001 AUTHENTICATE XOAUTH2 token_here
).However, for some reason when I try to connect with OAUTH2 with email clients like Thunderbird, they claim my server doesn't support OAUTH2 when it clearly does.
Is there something I'm missing that I need to do for mail clients to pickup that my IMAP server supports OAUTH2? I'm not even sure how I would announce the authorization URL to use for the clients.
It's also important to note I am hosting a test instance, so there isn't an actual domain yet, only a fake domain I use and a Ubuntu server instance running on VMWare on the same network.
For reference, here is the IMAP banner:
* OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN AUTH=OAUTHBEARER AUTH=XOAUTH2] Dovecot (Debian) ready.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions