Microsoft's retirement of basic authentication / OAUTH2 and RT

Hi all - our RT instance uses getmail (http://pyropus.ca/software/getmail/) to shuttle email into RT. The accounts are Microsoft Office365 addresses provided by our central IT service. With Microsoft announcing the retirement of Basic Authentication and move to their own flavor of OAUTH2, does anyone have any solution for getting Office365 mail into RT?

Getmail supports OAUTH2 for Gmail but only with IMAP and as of now, MS has not provided an IMAP/OAUTH solution.

The alternatives I see so far:

  1. Somehow running our own mail server again. This would bump up against “rules” from above so would likely be a last resort if even at all possible.
  2. Forward emails to a third-party provider that still supports standard IMAP accounts.
  3. Hoping that Microsoft will release an IMAP solution and that some Linux client (getmail, fetchmail, something else) will support this in the future.

I’d be curious if anyone else is in the same boat and what you’re planning on doing about it.

Thanks all!

Can you have the mail forward to the RT server from Exchange and then have the alias tell the server how to get the email to RT?

Hi Miturria,
I had the same problem. I solved it with a small python script and the o365 library.
I got from our IT a ClientID and ClientSecret and some rights for Email.Read an Email.Send.
So currently I’m connecting to Microsoft for authentication and using the MSGraph API to pull the mails like fetchmail or getmail did. Please have a look at O365 .

1 Like

Thank you! I will check this out soon. My Python skills may just be enough to write a script to fetch mail using this library. :slight_smile: