During the day today we have detected problems with the library, the error message that we get is the following:
Error message: User is authenticated but not connected:
Mail.dll: 16:47:20 0425 Connecting to 'outlook.office365.com:993', SSL/TLS: True.
Mail.dll: 16:47:20 0425 S: * OK The Microsoft Exchange IMAP4 service is ready.
....
Mail.dll: 16:47:45 0425 C: 04250002 AUTHENTICATE XOAUTH2 dXNlcj1l....XXX
Mail.dll: 16:47:46 0425 S: 04250002 OK AUTHENTICATE completed.
Mail.dll: 16:47:46 0425 C: 04250003 CAPABILITY
Mail.dll: 16:47:46 0425 S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CLIENTACCESSRULES CLIENTNETWORKPRESENCELOCATION BACKENDAUTHENTICATE CHILDREN IDLE NAMESPACE LITERAL+
Mail.dll: 16:47:46 0425 S: 04250003 OK CAPABILITY completed.
Mail.dll: 16:47:46 0425 C: 04250004 LIST "" ""
Mail.dll: 16:47:46 0425 S: 04250004 BAD User is authenticated but not connected.
We are using IMAP with OAuth2 (client credential flow), it authenticates us but does not connect, we have access to the mailbox via the web.
The password and the credentials are correct since it authenticates correctly; it's an issue of not connecting.
We are making connections every 5 minutes.
It has not given us problems until early this morning when the connection error has started to jump.
You can give us support, we have had the service stopped for an hour and it is something urgent that we need to solve as soon as possible.