How do I use connect Office 365 via MS Exchange to a GNOME Online Account?

I am trying to setup an online account that connects to my companies office365 but i'm getting the error: "Cannot fins WebDAV endpoint". I can normally connect and login to the account via browser. Do i need to install an additional connector to do this?


Solution 1:

Am I right in assuming that you are using gnome online accounts? I had a similar problem in other distros, and I was able to replicate it on an Ubuntu 17.10 virtual machine.

After clicking the new exchange account button in gnome online accounts, I typed in my email and password and submitted. The following screen came up. (I switched out my normal email address.) See photo below.

Before
Before

After changing the custom username field to be my entire email address and the server field to be "outlook.office365.com" (this server name may not apply to you; to find yours, look in the settings of your webmail page), the configuration succeeded, and ubuntu asked for my password again to add it to a keychain. See photo below.

AfterAfter

Also, if you are using gnome evolution for your email, you may need to run the following command to install support for the exchange web server:

sudo apt install evolution-ews

Solution 2:

I cannot comment so here's my answer!

Follow instructions of pcoppock1's answer, if it does not work:

  • Try using outlook.com instead of outlook.office365.com.
  • Use an app password instead of your main account password, expecially if you have 2fa activated.
    If you dont know how to create an app password, check this ms guide

Hope it helps!