Campus (UMsystem) has moved to centralized, cloud-sourced,
closed-source, email and calendaring provided by Microsoft Outlook. If
you would like to access email using your choice of mail client, there
are currently several open, or semi-open alternatives which are
pre-approved by UMsystem:
Exchange -> Davmail -> Your choice of email/calendar
client (Windows, Linux, Mac):
a protocol “gateway” which accesses exchange and re-serves it via
IMAP/POP3/SMTP/CalDav/etc. Run on your local machine, this enables you
to use ANY email client that supports open standards.
Exchange -> Evolution-mail (Linux):
a pretty nice open-source exchange-compatible client
Thunderbird is an open-source email client by Mozilla (I don’t
recommend their default mbox format, but prefer maildir instead), and
ExQuilla is a closed-source, proprietary, paid plugin for exchange
interaction.
Exchange -> KDE’s KMail (Linux):
May work natively, but has not been pre-approved by UMsystem, and
thus I have not tested it.
1.1 1. Exchange -> Davmail ->
Your choice of email/calendar client!
Exchange/Office-365 runs a proprietary protocol (rather than rely on
open standards for email). One solution to using your own mail client
which only interacts with open standards (IMAP, SMTP, POP, etc), is to
use Davmail. The cross-platform software, Davmail, pretends to be
Outlook, and then re-serves a mail server (IMAP or POP, and SMTP,
calendaring server, etc.) on your localhost. You can then point your
mail and calendaring client (e.g., mutt, Thunderbird, Claws-mail,
Evolution, KMail, or whatever other client) to localhost on Davmail’s
chosen port, and they will interface with campus exchange.
O365Manual Office 365 with interactive dialog, not available in
headless mode (via url/browser, recommended).
O365Interactive Office 365 with interactive browser window, not
available in headless mode (OpenJFX required, not recommended)
URL: automatically chosen by davmail
The rest depends on your preferences (whether you want IMAP or POP3,
which port you want those and SMTP on, etc). See the davmail
documentation or message board for more detail.
Configure your mail client of choice to point to davmail’s local
server (127.0.0.1:PORT) where port is whatever you chose for each
protocol.
In your mail client, put in your username@umsystem.edu and password
into your mail client itself, not davmail.
When you check your mail, davmail will prompt you to open a link in
a web browser, to complete your OAuth2 2fa, and then past the resulting
link (which will appear blank) back into the davmail GUI prompt. It will
remember your session for the duration of the time your computer is on.
Copy-pasting the OAuth link into your browser of choice is
recommended.
I have not tried setting up davmail directly with EWS using the
appropriate IDs, but you may find them helpful for some setups:
While email works great with davmail, calendaring and contact
management is ok, but does not work quite as well as Evolution’s native
support, which can respond to invites, etc.
You could technically run davmail on your own server, have it sync
with exchange, and re-serve to your phone’s mail client, but the OAuth2
would be a bit of a pain that way, and it’s probably not the best idea
anyway.
1.2 2. Exchange ->
Evolution-mail
https://wiki.gnome.org/Apps/Evolution/ (open source,
Linux-only)
While there have been many attempts at native open exchange support
particular to mail/calendaring clients themselves, the only full open
client-native option I have tested that works on campus is Evolution
mail. Evolution uses maildir for its mailbox format, which is a better
option than the mbox format used as Thunderbird’s default. It is a
pretty solid mail client, in my opinion.
Install Evolution (Linux only)
#!/bin/bash# If you run Fedora/Red-Hatdnf search evolutionsudo dnf install evolution evolution-ews# If you run a Debian-based distro (like Ubuntu, Mint, etc.)sudo apt-get updateapt search evolutionsudo apt install evolution evolution-ews# If you run OpenSusezypper search evolutionsudo zypper install evolution evolution-ews# if you run some other distro, you probably get the point by now...
Open Evolution
File -> New -> Mail account
Enter your basic information
For the connection settings, enter the following information:
OAB (online address book) url: Click “Fetch URL” seen below, and it
will auto-fill this (you don’t type it what you see below).
Make the rest of the settings match below (other than OAB URL, and
your own username):
The rest of the configuration is up to you!
When it attempts to log in, Evolution will show you a little pop up
window with the web-based OAuth 2fa, which you follow as you would
expect. OAath 2fa support appears to be limited to phone/text, with
hardware security keys in Linux usable only in chromium-based
browsers.
The relevant URLs are likely the same as Evolution’s above.
I have not set this up myself, and would recommend any of the
following over doing so:
Evolution by itself (Linux)
davmail + Evolution (Linux)
davmail + Thudnerbird (Windows, Mac, Linux)
davmail + any other mail/calendaring client
1.4 4. Exchange -> KDE’s KMail
?
Linux only email client, KMail. This may be working in general.
However, it has not been tested by me (or campus), or approved by campus
yet. If anyone has confirmed KMail working with OAuth2 and O365 modern
in general, and wants to use it, please check in and make the
request.