Skip to content
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

New JSON-based AutoDiscovery #4

Open
TCB13 opened this issue Apr 6, 2018 · 14 comments
Open

New JSON-based AutoDiscovery #4

TCB13 opened this issue Apr 6, 2018 · 14 comments

Comments

@TCB13
Copy link

TCB13 commented Apr 6, 2018

Hello,

I've noticed that the latest Outlook 2016 from Office 365 uses a new auto configuration format, have a look at this from my Apache:

[06/Apr/2018:04:26:15 +0200] "GET /autodiscover/autodiscover.json?Email=user%40exampledomain.org&Protocol=ActiveSync&RedirectCount=1 HTTP/1.1" 404 4020 "-" "OutlookMobileCloudService-Autodetect/1.0.0"

Are there any ideas on supporting this newer JSON format as well? Thank you.

@Billyboylindien
Copy link

Same on my side.
It use activesync protocol.
Impossible to find any documentation :'(
If someone have I take ;)

My searches:
https://github.com/mailcow/mailcow-dockerized/blob/master/data/web/autodiscover-json.php

@gronke
Copy link
Owner

gronke commented Jul 25, 2018

I've noticed that the latest Outlook 2016 from Office 365 uses a new auto configuration format
@TCB13 do you know if the client sends a user agent string or how we can differentiate which client is connecting?

Are there any ideas on supporting this newer JSON format as well? Thank you.
It invites for a conditional that differentiates which format to present.

Impossible to find any documentation :'(
Usually looking at other ISPs configuration is an appropriate way to gain such information.

@TCB13
Copy link
Author

TCB13 commented Jul 25, 2018

@gronke I think the link by @Billyboylindien answers that question https://github.com/mailcow/mailcow-dockerized/blob/master/data/web/autodiscover-json.php

Looks like the Protocol field in the GET request can be either ActiveSync or AutodiscoverV1.

@Gorjan-Relevantmobile
Copy link

Hi Guys, could you please tell me if some one has implemented this?

@Deepakbaghel99
Copy link

Autodiscover.json is the new Autodiscover (Autodiscover V2) service that is used by Office 365 clients to discover the location of the mailbox to connect too.
3rd party clients are advised to used Graph.microsoft.com. Behind the scene Graph would do the Autodiscover V2 to discover the protocol URL required to connect to the requested mailbox and then connect to it to get the requested content.
https://channel9.msdn.com/Events/Ignite/2016/BRK3045 is the link to the Ignite talk talking (24.30 mins) about Autodiscover V2 in Graph context.

@TCB13
Copy link
Author

TCB13 commented Aug 19, 2019

I still can't get arond this. Outlook doesn't even seem to behave the same from domain to domain.

@FoZo
Copy link

FoZo commented Aug 31, 2020

Hi,
it looks like the new otulook just don't support autodiscovery for non MS services.
After few days digging in the MS documentation I had found this:
https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxdscli/b79961b5-ff44-47bf-b136-b5613c45f18b#Appendix_A_36

@kartikayx
Copy link

Can someone point me to a document or something ? I need to implement auto discovery for my native mobile app using graph i don't find any resource related to this.

@kartikayx
Copy link

Autodiscover.json is the new Autodiscover (Autodiscover V2) service that is used by Office 365 clients to discover the location of the mailbox to connect too.
3rd party clients are advised to used Graph.microsoft.com. Behind the scene Graph would do the Autodiscover V2 to discover the protocol URL required to connect to the requested mailbox and then connect to it to get the requested content.
https://channel9.msdn.com/Events/Ignite/2016/BRK3045 is the link to the Ignite talk talking (24.30 mins) about Autodiscover V2 in Graph context.

@Deepakbaghel99 How we can use graph ? graph will require the auth tokens right ? which api of graph we need to call ?

@TCB13
Copy link
Author

TCB13 commented Sep 30, 2020

3rd party clients are advised to used Graph.microsoft.com. Behind the scene Graph would do the Autodiscover V2 to discover the protocol URL required to connect to the requested mailbox and then connect to it to get the requested content.

Yeah I've noticed that Microsoft probes my servers for the v2 protocol however they don't seem to pass the settings to Outlook after that... I think this is anti competitive behavior - making sure only O365 email works properly with Outlook.
Before someone says my v2 implementation is broken just consider for a second that it works just fine with older versions of Outlook but its broken with the newer versions that use microsoft's graph servers.

@chris001
Copy link

I'm surprised and don't believe MS is still acting anti competitive in 2020. Example, they recently integrated linux VMs into windows server (afaik)! I bet this AutodiscoverV2 is caused by human error of missing documentation on how to use their Graph API and it should appear soon, as long we ask MS for it, and/or search in MS Tech Net for it.

@Trimilur
Copy link

Are there any news here? I am also unable to get autodiscover with imap working in outlook with o365.

@christophsanz
Copy link

I am having the same issue. It is weird how if you use the old "Mail (Microsoft Outlook) (32-Bit)" via the Control Panel everything works... this is just frustrating.
Why is automatic email configuration still that hard in 2021, why does not everyone use RFC 6186 ??

@m3nu
Copy link

m3nu commented Mar 28, 2021

There is also a registry flag that can change the default dialog in Outlook back to the “advanced version”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests