How to connect to an imap connector from a windows service using OAuth2

281 Views Asked by At

We have a windows service that collects mail from via an imap connector and then processes that email and attachments into a database. Is there a way that we can do this using OAuth2 when exchange online removes support for basic authentication? There is no user interface to the service or user access to teh system when it is running beyond the start and stop of the service. We are currently using Chilkat's excellent Imap component.

1

There are 1 best solutions below

0
On

Yes, Microsoft have finally released support and documentation for this in Exchange Online. See the following Microsoft document:

Authenticate an IMAP, POP or SMTP connection using OAuth