Add Microsoft Exchange account to calendar

I need to add my Microsoft Exchange account in order to view my calendar. I suppose I need to configure it via settings. There's an option to add the account in the Settings > Online Accounts > Microsoft Exchange. Typing in my email and password the first thing I notice is that it tries to use wrong server as it should be outlook.office365.com (if I'm correct). That didn't help me much though.


Found an answer by trial and error! Type your email in the email field AND in the username field. And of course use outlook.office365.com as the server.


I would like to share a complete 3-Step tutorial to sync your calendar account with Linux.

Note: This will also sync your email to evolution, after the tutorial just open evolution and refresh the mailbox - you must have email sync enable on Online Accounts.

This tutorial will even work with personalized enterprise domain in office 365.

STEP 1) Install evolution-ews on your Linux

Debian and derivated:

sudo apt-get install evolution-ews

or just

sudo apt install evolution-ews

on newer versions.

Fedora and Derivated:

sudo yum install evolution-ews

or

sudo dnf install evolution-ews

on newer versions.

STEP 2) On Online Accounts select Microsoft Exchange:

Fill up the email and password fields with your Office 365 info (the rest will be filled automatically).

STEP 3) Replace Server field with:

outlook.office365.com

and copy the email field content into username field.

Here is how it should look like:

BEFORE: Before

AFTER: After