Re: fetchmail 7.0.0.alpha7 oauth authentication failure to outlook.office365.com

Matthias Andree <[email protected]>
Newsgroups gmane.mail.fetchmail.user
Message-ID <[email protected]>
Am 12.04.21 um 16:19 schrieb David Thompson via Fetchmail-users:
> I'm trying to get the latest fetchmail alpha to pop mail from Microsoft. I'm using the python O365 module to get an access token, and then using fetchmail's passwordfile option to pop the messages. I can access the email account fine using the O365 python module, but if I extract the access token from the FileSystemTokenBackend file for use with fetchmail, I get an authentication error. I've also verified that the extracted access token is good using Microsoft's tool (https://jwt.ms/). Here are my specifics (per the FAQ G3):
>
> Os: CentOS 7 (CentOS Linux release 7.9.2009 (Core))
> Compiler: gcc-4.8.5-44.el7.x86_64
> Command: fetchmail -v -f fetchmailrc
>
> My fetchmailrc is:
> poll outlook.office365.com proto pop3 auth oauthbearer
>         user '[email protected]' passwordfile '/opt/rt-oauth/[email protected]' sslmode wrapped
>
> fetchmail -V ... and fetchmail -vvv... outputs are attached.
>
> Any thoughts or suggestions are greatly appreciated.

David, how long is the "password" token?

ls -l /opt/rt-oauth/[email protected]

I have recently released fetchmail 7.0.0-alpha8 with an increased maximum password length of 10,000 bytes net, but the announcement hasn't made it through to the list yet, for reasons unknown (no bounce received yet), hence I am Cc:ing you (out of the ordinary).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.