Issues connecting to an exchange server

I’ve got an exchange account (office 365) which is

I’ve entered in the IMAP login credentials but I’m receiving a red triangle warning symbol and when I mouse over it says “an attempt to connect to office failed. This could be due to a temporary service…”

What am I doing wrong? Thanks!