Ericsson / exchangecalendar

Exchange 2007/2010/2013 Calendar, Tasks, Contacts and GAL Provider.
GNU General Public License v3.0
925 stars 112 forks source link

autodiscovery should follow SRV record #249

Open richey-v opened 9 years ago

richey-v commented 9 years ago

It appears to me that exchangecalendar is using the domain from my email address instead of dereferencing the SRV in DNS to find the correct autodiscover URL. SRV for the domain of my email is programmed in DNS correctly:

 nslookup -query=axfr example.com ns.example.com | grep discover
 _autodiscover._tcp.example.com        service = 0 0 443 example.realhost.com.

So autodiscover should eventually try https://example.hosting.com/autodiscover/autodiscover.xml.

Following links may help: https://technet.microsoft.com/en-us/library/dd439398%28v=exchg.80%29.aspx http://www.virtuworks.com/how-to-setup-outlook-autodiscovery-for-your-domain/

Trim commented 8 years ago

I took a look to the erAutodiscover file and it's pretty easy to add new urls to test for autodiscovery settings.

If I've well understood your request, you need the implementation of the last steps of the Microsoft documentation: if all tried URLs failed, try to find a different domain name by use of SRV records in DNS corresponding to _autodiscover._tcp.example.com (according you have a mail address like test@example.com).

I've checked if we can use Thunderbird tools to do such a query to avoid to add an external Javascript library in the project. Mozilla has nsIDNSService to implements DNS requests, but unfortunately, it doesn't implement look for SRV records.

Note, that there's also a bug open by Mozilla for XMPP support in Thunderbird which need SRV records too: 787369.

Unfortunately, both bug reports have no more activity since december 2014.