-
Notifications
You must be signed in to change notification settings - Fork 18
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
Cannot autodiscover Office365 @domain.onmicrosoft.com emails #6
Comments
Same here, the reason is that the autodiscover gem tries to probe the following urls:
Solution: Microsoft and other hosted exchange providers serving non https resources like "http://autodiscover.znuny.onmicrosoft.com/autodiscover/autodiscover.xml" which do an redirect to correct https resource, in this case to https://autodiscover-s.outlook.com/autodiscover/autodiscover.xml which is returning the EWS URL correctly "https://outlook.office365.com/EWS/Exchange.asmx". So the autodiscover gem need to get improved to handle autodiscover this way. |
…acable fail further lookup tries.
I created the pull request #9 for fixing this issue based on the work of @martini this morning. If the newly added exceptions get skipped the gem actually tries requests for the http domain:
The 302 Location header is used if present:
So there is no need to add the HTTP requests. They just were never executed before because of the unhandled exceptions. |
Exchange emails for an Office 365 setup with no custom domain are of the format
[email protected]
. The gem incorrectly tries to find the autodiscovery URL atdomain-name.onmicrosoft.com
.The text was updated successfully, but these errors were encountered: