My future school uses Microsoft 365 Outlook for email. It does not support POP/IMAP and instead uses Microsoft's proprietary Exchange Web Services (EWS) protocol.
For several obvious reasons, I don't want to use Outlook webmail, so I had to figure out how to set up an email client to work with my school email.
Why not Thunderbird?
Thunderbird, my preferred email client, does not natively support EWS. I saw some people recommending davmail (which is available in Debian's repos but not Fedora's), but I had some trouble figuring out how to use it. I discovered Evolution had a plugin for EWS, so I stopped trying with Thunderbird and switched to Evolution.
GNOME Evolution has a plugin for EWS. The package is called evolution-ews on both Fedora and Debian.
1. Install evolution-ews
sudo dnf install evolution evolution-ews
sudo apt install evolution evolution-ews
2. Set up Evolution
Run Evolution. On first run, it will show a setup wizard. Follow through the prompts until you get to Receiving Email.
When you get to Receiving Email, choose the following settings:
- Server Type: Exchange Web Services
- Username: <your email address>
- Host URL: https://outlook.office365.com/EWS/Exchange.asmx
- Authentication: [change the authentication type to OAuth2 (Office365)]
Click Apply to save your settings.
When Evolution tries to check your email the first time, it will launch a web dialog asking you to sign in with your organization. Follow this dialog.
My school required Duo authentication as well. (Note, checking the "Remember me for 30 days" box caused problems. Don't do that.)
If Outlook asks you to authorize the Evolution client, obviously do that.
You should now be able to access your email with Evolution!
(Tip: See Use plaintext email for more Evolution setup tips.)