Hi Community,
I’ve set up Microsoft OAuth for IMAP access in SuiteCRM v7.14 using delegated permissions (IMAP.AccessAsUser.All , offline_access , User.Read ). The consent is granted, and the token is issued successfully.
However, when attempting to select monitored folders via IMAP, I consistently receive this error:
#### Logs
#### PHP
Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** An Imap error detected: "IMAP open error: Can not authenticate to IMAP server: A0001 NO AUTHENTICATE failed."Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** An Imap error detected: "IMAP open error | debug data"Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** An Imap error detected: "ImapHandler:open: {outlook.office365.com:993\/service=imap\/ssl\/tls\/validate-cert\/secure}INBOX"Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** An Imap error detected: "ImapHandler:open: mujib.rehman@rolustech.net"Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** An Imap error detected: "ImapHandler:open: password is empty: no"Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** An Imap error detected: "ImapHandler:open: 512"Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** An Imap error detected: "IMAP open error | debug data end "Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** ImapHandler trying to use a non valid resource stream.Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** An Imap error detected: "IMAP open error:Can not authenticate to IMAP server: A0001 NO AUTHENTICATE failed."Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** ImapHandler trying to use a non valid resource stream.Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** ImapHandler trying to use a non valid resource stream.Thu Jun 5 19:34:09 2025 [10604][1]**[FATAL]** An Imap error detected: "Can not authenticate to IMAP server: A0001 NO AUTHENTICATE failed."
The debug logs confirm that the access token is present, but IMAP authentication still fails. The IMAP host used is:
{outlook.office365.com:993/ssl/validate-cert/secure}INBOX
Additionally, I reached out to Microsoft Support and received the following clarification:
I understand that you seem to want to link Microsoft’s personal mailboxes in a three-party software, SuiteCRM. Please correct me if I have misunderstood.
Microsoft has fully enabled registration with OAuth on September 16th, which means that you will not be able to set up your Microsoft personal email using IMAP without using OAuth2. You may want to check with SuiteCRM software support to confirm this issue.
You can check this link for information: Modern Authentication Methods now needed to continue syncing Outlook Email in non-Microsoft email apps - Microsoft Support
Or you can try asking questions about the configuration of your SuiteCRM software side in this community (Outlook - Microsoft Q&A), where experts may know more about how to solve your problem.
Has anyone successfully integrated Microsoft 365 OAuth2 for IMAP in SuiteCRM v7.14?
If so, is there any additional configuration required to make it work?
Any help or guidance would be greatly appreciated.
Suite Documentation Followed: