interfacing with Outlook exchange server?

87 views
Skip to first unread message

Stephen Eglen

unread,
Dec 19, 2023, 8:17:24 AM12/19/23
to mu-discuss
Hello,

A bit off topic, but I thought I'd ask here.

My work mail will be switching to Exchange Online.   Has anyone any recent experience of extending mbsync and msmtp to work with the Microsoft exchange SMTP and IMAP servers?  The major issue would seem to be the authentication protocols, which I don't quite understand yet.  I'd rather not have to leave mu4e behind... its been part of my workflow for many years now!

Best wishes, Stephen


Norm Tovey-Walsh

unread,
Dec 19, 2023, 10:08:19 AM12/19/23
to mu-di...@googlegroups.com
When I had to do this, I used DavMail[1] as a local proxy.

A bit fiddly to setup, but it worked.

Be seeing you,
norm

[1] https://davmail.sourceforge.net/

--
Norm Tovey-Walsh <n...@nwalsh.com>
https://norm.tovey-walsh.com/

> Progress isn't made by early risers. It's made by lazy men trying to
> find easier ways to do something.--Robert Heinlein
signature.asc

Benjamin Slade

unread,
Dec 19, 2023, 11:15:40 AM12/19/23
to mu-di...@googlegroups.com, Stephen Eglen, Norm Tovey-Walsh
I've used DavMail (referred to by Norm) for about 3 years to interface mu4e with an OAUTH2 Exchange/Outlook work mail account (IMAP/SMTP) and it's worked pretty well.

I note that there is also email-oauth2-proxy[1], which might be another alternative, but I haven't tried it.

[1]: <https://github.com/simonrob/email-oauth2-proxy>

best,
 —Benjamin
--

'(Dr Benjamin Slade (he/him)
     (website . <https://lambda-y.net>)
     `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19))
       "sent by mu4e 1.10.8 in Emacs 30.0.50 with org-msg on GNU Guix (Linux)")
> --
> You received this message because you are subscribed to the Google Groups "mu-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+...@googlegroups.com.
> To view this discussion on the web visit <https://groups.google.com/d/msgid/mu-discuss/m2ttoei61v.fsf%40nwalsh.com>.

>

Brian Flaherty

unread,
Dec 20, 2023, 11:15:34 AM12/20/23
to mu-di...@googlegroups.com
I had to do this too a bit ago. I typed this up after I succeeded in
getting it to work:

https://sites.uw.edu/bxf4/2022/09/01/getting-uw-outlook-365-oauth2-to-work-with-emacs-mu4e-mbsync-and-msmtp/

It turns out I did not need to change msmtp because my employer had an
old smtp server I could still use, but I assume the logic would be
similar.

The other gotcha I've since encountered is that the security key or
password one creates on the MS Azure web app expires after a year. (That
might be customizable.) One day mbsync just stops working. I don't
remember exactly how I updated/refreshed the password, but it wasn't too
painful. I've done it twice now, but never at a time when I took the
time to jot down notes to remember how to do it.

The DAV solution might be much nicer though. I'm unfamiliar with it, but
the above took me hours to figure out the first time I did it.

Take care,

Brian




Reply all
Reply to author
Forward
0 new messages