Evening all,
Can confirm I now have working email to ticket via Office 365 and OAuth2!
Useful links:
Email OAuth 2.0 Proxy - Transparent OAuth 2.0 for Basic Auth IMAP to Exchange - YouTube
https://github.com/lakelse/videos/tre...
I have found that the scripts that are used here do exist in the form of a docker container (here) but was unsuccessful at getting them to work for whatever reason.
I'll hopefully get this set up in production sometime next week and see how I get on with it