-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to fetch IMAP folders from Exchange Online using OAuth #2264
Comments
It looks like something is going on in MS365 system. Some people are receiving "connection setup failed" error. You can't get IMAP folders... |
What happens when you click "Check Connection" button in your mailbox? |
@salimnassim Does the MS365 user you are using to connect have a mailbox in MS365 and a license allowing to access it (try to open https://outlook.office365.com/mail/)? |
I get a red popup notification which says "Could not get mailbox folder: INBOX"
The user account has a working mailbox and I can access it directly through the PWA and Outlook. |
Try to contact MS365 support and ask why INBOX folder is not available via OAuth IMAP. Maybe they added some restrictions... |
I have created a ticket for Microsoft regarding this issue. I will update this ticket in case they have a solution. |
Apparently there's an ongoing issue with accessing mailbox via IMAP and the problem affects OAuth/Graph as well. This is the reply from them in case anybody else is having the same issue.
|
Thanks for sharing the info. |
After Microsoft reported that the issue I referenced to is fixed the problem with retrieving folders still persists. I have tested accessing the same mailbox via IMAP using other software such as Thunderbird and it works flawlessly. Is this an issue with Webklex/php-imap perhaps? Any ideas how to debug this further? Thanks |
It seems you are the only one receiving "Connected, but no IMAP folders found" error so far. You need a developer who can debug Webklex/php-imap. |
We also seem to have this issue where we get "Connected, but no IMAP folders found". We will continue to troubleshoot on our side, but would love some help on what that could be. |
See "Debugging OAuth Emails Fetching": |
We also had connection issues to IMAP folder of all mailboxes today. All mailboxes are Microsoft 365 Exchange mailboxes. We were able to resolve the connection issues by switching the connections to OAuth. Thanks for the instructions! (https://github.com/freescout-helpdesk/freescout/wiki/Connect-FreeScout-to-Microsoft-365-Exchange-via-OAuth) Unfortunately, after that, we were unable to retrieve IMAP folders for all mailboxes. The problem is that we use the SAML SSO module. So the personal account is always logged in. When we clicked "Connect", the authentication was done with the personal account and not with the account of the mailbox. The solution to solve this problem was:
I hope this helps you. Edit: |
Logging in with the mailbox user solved this issue for us, and we are able to retrieve the IMAP folders. My assumption was that the system would be smart enough to use the correct mailbox via OAuth but this was not the case. Thanks for the workaround @pathab ! |
Good to know. |
I'm still experiencing this issue regarding connection setup failed. We are currently running an older version, due to the fact we are running it on a live enviroment. Right now the version we have running is 1.8.12. thanks in advance! |
i'm getting an error from Microsoft saying the following. AADSTS50011: The redirect URI 'https://servicedesk.XXX.net.au/mailbox/oauth' specified in the request does not match the redirect URIs configured for the application '288c5f41-5671-4726-9ece-XXXXXX'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this. when i go to the /mailbox/oath address all i receive is a "Sorry, the page you are looking for could not be found" |
@mateit-cloudware Create a new separate issue. Also specify where and at what moment are you getting this error. |
@freescout-helpdesk: thank you. Done |
We're having issues with fetching IMAP folders from a Exchange Online mailbox.
The mailbox is a regular user and not a shared mailbox, and it has a valid Exchange license.
OAuth has been configured correctly according to https://github.com/freescout-helpdesk/freescout/wiki/Connect-FreeScout-to-Microsoft-365-Exchange-via-OAuth and the auth flow works.
When I try to retrieve IMAP folders I get the following message "Connected, but no IMAP folders found" and IMAP folders field will be populated with the default "INBOX". Clicking "check connection" after saving displays the following error "Could not get mailbox folder: INBOX". Due to this problem emails wont be retrieved from the mailbox.
App version is 1.8.26 and the system status page does not display any errors.
Any ideas? Thanks
The text was updated successfully, but these errors were encountered: