Work uses O365 and I'm getting a little frustrated with OWA. Thinking about running a local email server to mirror O365. In the end, I want to keep my email in O365, but have a 2 way sync with a local imap server. Looks like I have a few options on the email server - dovecot/cyrus/stalwart. For the syncing, I just see mbsync. Any experience setting up something similar? Any other options other than what I listed?
Edit: IT knows what I'm doing. I'm not going to compromise any compliance requirements we have.
I use Evolution with the o365 account at work. All one needs is the EWS plugin and the company tenant ID. Evolution then pretends to be a generic MS Office app, using a well-known app ID. oauth2 works just fine.
Maybe, after a few months (or a year, as I may or may not have experienced) of "communication" you'll be allowed to use Thunderbird. Only for it to be suddenly blocked again later because some dude didn't understand why can't everyone just use Outlook.
And don't even dream of having a script to, say, sort and preprocess your mail.