LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-13-2024, 07:41 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Rep: Reputation: 271Reputation: 271Reputation: 271
Fetching mail from an office365 server


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.
 
Old 03-13-2024, 08:27 AM   #2
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
I've previously used this plugin for Thunderbird:
https://addons.thunderbird.net/en-us...-for-exchange/

Worked like a charm. Not free, though: €10 per year.

EDIT: before that I used davmail for Office365 account (see https://slackbuilds.org/repository/15.0/network/davmail ). But late last year something or other changed in Office365, forcing me to find another solution.

Last edited by kgha; 03-13-2024 at 08:41 AM.
 
Old 03-13-2024, 10:24 AM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,787

Rep: Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468
It works here with thunderbird without any plugin.
 
Old 03-13-2024, 11:07 AM   #4
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by Petri Kaukasoina View Post
It works here with thunderbird without any plugin.
It will, provided that IMAP works for the account in question. If it's a pure Exchange account, I don't think it works without some kind of plugin.
 
Old 03-13-2024, 11:43 AM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by kgha View Post
I've previously used this plugin for Thunderbird.
Quote:
Originally Posted by Petri Kaukasoina View Post
It works here with thunderbird without any plugin.
Quote:
Originally Posted by kgha View Post
It will
I want to fetch my mail into my mail spool file, not do all the stuff Thunderbird does.
 
Old 03-13-2024, 12:17 PM   #6
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
OK, did some googling for you, maybe this could help?
https://www.linux.com/training-tutor...-courier-imap/
 
Old 03-13-2024, 01:32 PM   #7
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by kgha View Post
did some googling for you, maybe this could help?
No, it doesn't. I've already done a lot of searching, read many pages. I don't use postfix; I've already set it up for gmail.
 
Old 03-13-2024, 01:45 PM   #8
r1w1s1
Member
 
Registered: Mar 2004
Location: São Paulo - Brazil
Distribution: Slackware
Posts: 62
Blog Entries: 1

Rep: Reputation: 39
Quote:
Originally Posted by RandomTroll View Post
No, it doesn't. I've already done a lot of searching, read many pages. I don't use postfix; I've already set it up for gmail.
Did you tried getmail ? Do you mind to share the error ?
 
Old 03-13-2024, 06:37 PM   #9
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
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

Last edited by Tonus; 03-13-2024 at 06:42 PM.
 
Old 03-13-2024, 09:13 PM   #10
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by r1w1s1 View Post
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.
 
Old 04-23-2024, 03:18 AM   #11
badbetty
Member
 
Registered: Jan 2014
Posts: 159

Rep: Reputation: Disabled
as an aside, just imagine the 'ordinary' amongst us trying to navigate the calamity the 'big tech' firms foist.
 
1 members found this post helpful.
Old 04-23-2024, 04:01 AM   #12
gattocarlo
Member
 
Registered: Jan 2020
Posts: 63

Rep: Reputation: Disabled
Quote:
Originally Posted by RandomTroll View Post
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...

hope this helps (but I do not think so).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
exim4 smtp server setup for Office365? guthrie Linux - Networking 1 04-02-2022 11:14 PM
[SOLVED] How to mount Office365 sharepoint on Linux server? james000 Linux - Software 3 02-10-2022 10:50 AM
Trying to configure exim4 with office365 raphael75 Linux - Newbie 3 04-21-2014 01:46 PM
Can't Connect Firefox 24 to Office365.com neodaemon Linux - Desktop 13 10-28-2013 11:53 AM
sendmail error Fetching mail could not lock /var/spool/mail/username sukhdev50 Linux - Networking 0 05-04-2005 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration