# Institutional Office365 not working - workaround!

**URL:** <https://community.getmailspring.com/t/institutional-office365-not-working-workaround/4085>\
**Category:** Help\
**Tags:** microsoft\
**Created:** [March 2, 2022, 9:07pm UTC](https://community.getmailspring.com/t/institutional-office365-not-working-workaround/4085 "2022-03-02T21:07:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorgefsoriano](https://community.getmailspring.com/user_avatar/community.getmailspring.com/jorgefsoriano/32/1901_2.png) [@jorgefsoriano](https://community.getmailspring.com/u/jorgefsoriano)\
**Post date:** [March 2, 2022, 9:07pm UTC](https://community.getmailspring.com/t/institutional-office365-not-working-workaround/4085/1 "2022-03-02T21:07:24Z")

</div>

I have (kind of by accident) found someone who made a post about making Mailspring work with institutional Office365 using the Exchange Web Services, which I guess a lot of people in here could take advantage of until EWS is implemented in Mailspring. It makes use of DavMail Gateway, a cross platform app that creates a local POP/IMAP/SMTP/etc email server connected to the EWS Microsoft account.

Here is the [relevant article](https://kcaps.medium.com/exchange-with-mailspring-using-davmail-c66548512675), and here is the [software website](http://davmail.sourceforge.net/).

I just downloaded it for Linux, using Mailspring 1.10.0 from Github, and it works like a charm. You just have to make sure the ports match, that you select no SSL, and use ‘localhost’ as server.

 ![Screenshot from 2022-03-02 16-05-24](https://community.getmailspring.com/uploads/default/original/2X/4/4890f1a27ceae2dab78fee97ac2a8010e511e071.png)

Of course, I can’t guarantee that nothing would be problematic with this workaround, as I don’t know anything about email protocols. If anyone knows about possible problems with this implementation, please comment!

---

<div class="post-metadata">

**Author:** ![knussear](https://community.getmailspring.com/user_avatar/community.getmailspring.com/knussear/32/2037_2.png) [@knussear](https://community.getmailspring.com/u/knussear)\
**Post date:** [May 22, 2022, 2:19pm UTC](https://community.getmailspring.com/t/institutional-office365-not-working-workaround/4085/2 "2022-05-22T14:19:40Z")

</div>

I implemented this and I get connection failures after account setup with Mailspring. The solution works perfectly with Thunderbird, so it would seem that davmail is configured correctly.

---

<div class="post-metadata">

**Author:** ![BT-Justice](https://community.getmailspring.com/user_avatar/community.getmailspring.com/bt-justice/32/5278_2.png) [@BT-Justice](https://community.getmailspring.com/u/BT-Justice)\
**Post date:** [May 22, 2022, 9:19pm UTC](https://community.getmailspring.com/t/institutional-office365-not-working-workaround/4085/3 "2022-05-22T21:19:53Z")

</div>

Does this mark messages as read on the EWS server and keep emails and folders sync? Does it also sync calendar, contacts, and notes?

---

<div class="post-metadata">

**Author:** ![Vapper](https://community.getmailspring.com/user_avatar/community.getmailspring.com/vapper/32/5437_2.png) [@Vapper](https://community.getmailspring.com/u/Vapper)\
**Post date:** [June 23, 2022, 2:40pm UTC](https://community.getmailspring.com/t/institutional-office365-not-working-workaround/4085/4 "2022-06-23T14:40:12Z")

</div>

This worked for me as well. Only difference was that I had to change the Exchange Protocol in davmail properties to ‘O365Interactive’ because of 2FA. Unfortunately, running davmail as a server service is more challenging then expected.
