SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been using fetchmail for 25 years, wish I could keep using it, but they refuse to get along with oauth2 and one of my accounts uses it.
What's the easiest alternative to get to get my mail with oauth2 support? I've looked at a few different, but the instructions haven't been instructive.
I can pick up my mail from gmail, which uses oauth2, and I can send my mail through the office365 server, so I'm not sure what the hold-up is, but I've failed to figure it out. No doubt it's me.
If it uses imap, have a look at offlineimap.
At work I use owl plugin for thunderbird on windows. I tried to set things up in neomutt with a gateway (davmail) to no avail. Maybe you could get it working now it might be more mature project.
I concluded your exchange server config must be at least slightly open to third-party tools to have any success
Did you tried getmail ? Do you mind to share the error ?
Yes. I finally figured out how I was supposed to try to get it to work. I logged into portal.azure.com, tried to register the app to get the client_id and client_secret. azure replied that my 'tenant' didn't allow this. I got it to work for another domain, for which I don't need it, which worked. I tried using the id and secret of the second domain for the first, but that didn't.
Last edited by RandomTroll; 03-13-2024 at 09:14 PM.
Yes. I finally figured out how I was supposed to try to get it to work. I logged into portal.azure.com, tried to register the app to get the client_id and client_secret. azure replied that my 'tenant' didn't allow this. I got it to work for another domain, for which I don't need it, which worked. I tried using the id and secret of the second domain for the first, but that didn't.
you could use getmail6 (similar to fetchmail and comes with slackware): you need to use a mutt script (present ins slackware: mutt_oauth2.py) to retrieve a refresh token and, feeding it to getmail, get an authorization token to retrieve your mail.
as you said to get the refresh token you need to have an approved client_id and client_secret. the manager of your account could approve it, but if it doesn't you will not be able to access your mail with a non approved client. this is what oauth2 is all about: controlling the client.
if thunderbird works you could use its credentials (client_id and client_secret) with mutt (and, with the refresh token use getmail), but retrieving the refresh token this way may be tricky.
with gmail I was able to get my client id and client secret and use it with my university email account, but my university, so far, does not discriminate between good and bad clients...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.