Autodiscovery Issues Exchange 2007
I'm having issues with autodiscovery with Exchange 2007 (on SBS 2008). When I run testexchangeconnectivity I get the following:
Attempting to test Autodiscover for barbh@mydomain.ca
Testing Autodiscover failed.
Test Steps
ExRCA is attempting each method of contacting the Autodiscover service.
The Autodiscover service couldn't be contacted successfully by any method.
Test Steps
Attempting to test potential AutoDiscover URL
https://mydomain.ca/AutoDiscover/AutoDiscover.xml
Testing of this potential Autodiscover URL failed.
Test Steps
Attempting to resolve the host name mydomain.ca in DNS.
Host successfully resolved
Additional Details
IP(s) returned: 204.83.0.46
Testing TCP Port 443 on host mydomain.ca to ensure it is listening and open.
The port was opened successfully.
ExRCA is testing the SSL certificate to make sure it's valid.
The SSL certificate failed one or more certificate validation checks.
Test Steps
The certificate name is being validated.
Certificate name validation failed.
Tell me more about this issue and how to resolve it
Additional Details
Host name mydomain.ca does not match any name found on the server certificate CN=mail.mydomain.ca, OU=Domain Control Validated - QuickSSL(R), OU=See
www.geotrust.com/resources/cps (c)09, OU=GT36642155, O=mail.mydomain.ca, C=CA
Attempting to test potential AutoDiscover URL
https://autodiscover.mydomain.ca/AutoDiscover/AutoDiscover.xml
Testing of this potential Autodiscover URL failed.
Test Steps
Attempting to resolve the host name autodiscover.mydomain.ca in DNS.
The Host could not be resolved.
Tell me more about this issue and how to resolve it
Additional Details
Host autodiscover.mydomain.ca could not be resolved in DNS Exception details:
Message: The requested name is valid, but no data of the requested type was found
Type: System.Net.Sockets.SocketException
Stack trace:
at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at Microsoft.Exchange.Tools.ExRca.Tests.ResolveHostTest.PerformTestReally()
ExRCA is attempting to contact the Autodiscover service using the HTTP redirect method.
The attempt to contact Autodiscover using the HTTP Redirect method failed.
Test Steps
Attempting to resolve the host name autodiscover.mydomain.ca in DNS.
The Host could not be resolved.
Tell me more about this issue and how to resolve it
Additional Details
Host autodiscover.mydomain.ca could not be resolved in DNS Exception details:
Message: The requested name is valid, but no data of the requested type was found
Type: System.Net.Sockets.SocketException
Stack trace:
at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at Microsoft.Exchange.Tools.ExRca.Tests.ResolveHostTest.PerformTestReally()
ExRCA is attempting to contact the Autodiscover service using the DNS SRV redirect method.
Failed to contact AutoDiscover using the DNS SRV redirect method.
Test Steps
Attempting to locate SRV record _autodiscover._tcp.mydomain.ca in DNS.
The Autodiscover SRV record wasn't found in DNS.
- Also, when I run test-outlookwebservices I get the following:
[PS] C:\Windows\System32>test-outlookwebservices |fl
Id : 1003
Type : Information
Message : About to test AutoDiscover with the e-mail address
Administrator@jhsc
a.ca.
Id : 1007
Type : Information
Message : Testing server SBS.mydomain.local with the published name
https://mail.j
hsca.ca/EWS/Exchange.asmx &
https://mail.mydomain.ca/EWS/Exchange.asmx.
Id : 1019
Type : Information
Message : Found a valid AutoDiscover service connection point. The AutoDiscover
URL on this object is
https://mail.mydomain.ca/Autodiscover/Autodiscove
r.xml.
Id : 1013
Type : Error
Message : When contacting
https://mail.mydomain.ca/Autodiscover/Autodiscover.xml r
eceived the error The remote server returned an error: (401) Unauthor
ized.
Id : 1006
Type : Error
Message : The Autodiscover service could not be contacted.
Any Help would be appreciated,
Dwayne
September 14th, 2010 2:29am
In your external DNS do you have either an A record for autodiscover.domain.ca or an SRV record for _autodiscover._tcp.domain.ca? You need one of those. The preferred route is the A record, but you will need autodiscover.domain.ca as a SAN in
your public certificate. If you don't have this entry in your cert and you don't want to modify your cert, you will need to create the SRV record and point to your mail.domain.ca
http://support.microsoft.com/kb/940881Tim Harrington - Catapult Systems - http://HowDoUC.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
September 14th, 2010 4:07am
I agree
For what I've heard it should also work with a CNAME record pointing to the A record if the name isn't included in the certificate
I haven't evaluated it so much myself yet..
Best it to go for the options Tim suggested but it requires the autodiscover name is included in the certificate
Jonas Andersson MCTS: Microsoft Exchange Server 2007/2010 | MCITP: EMA 2007/2010 | MCSE/MCSA Blog:
http://www.testlabs.se/blog
September 14th, 2010 12:24pm
I checked and it turns out that the forward lookup zone for my external dns wasn't added (this server was involved in an SBS 2003 to 2008 migration and there were some issues).
So I created the forward lookup zone for domain.ca and I've added the A record for autodiscover.domain.ca as well as the SRV record for _autodiscover._tcp.domain.ca as per the KB article you provided. However, I'm still getting the following:
Attempting to test Autodiscover for
shirleym@MYDOMAIN.ca
Testing Autodiscover failed.
Test Steps
ExRCA is attempting each method of contacting the Autodiscover service.
The Autodiscover service couldn't be contacted successfully by any method.
Test Steps
Attempting to test potential AutoDiscover URL
https://MYDOMAIN.ca/AutoDiscover/AutoDiscover.xml
Testing of this potential Autodiscover URL failed.
Test Steps
Attempting to resolve the host name MYDOMAIN.ca in DNS.
Host successfully resolved
Additional Details
IP(s) returned: 204.83.0.46
Testing TCP Port 443 on host MYDOMAIN.ca to ensure it is listening and open.
The port was opened successfully.
ExRCA is testing the SSL certificate to make sure it's valid.
The SSL certificate failed one or more certificate validation checks.
Test Steps
The certificate name is being validated.
Certificate name validation failed.
Tell me more about this issue and how to resolve it
Additional Details
Host name MYDOMAIN.ca does not match any name found on the server certificate CN=mail.MYDOMAIN.ca, OU=Domain Control Validated - QuickSSL(R), OU=See
www.geotrust.com/resources/cps (c)09, OU=GT36642155, O=mail.MYDOMAIN.ca, C=CA
Attempting to test potential AutoDiscover URL
https://autodiscover.MYDOMAIN.ca/AutoDiscover/AutoDiscover.xml
Testing of this potential Autodiscover URL failed.
Test Steps
Attempting to resolve the host name autodiscover.MYDOMAIN.ca in DNS.
The Host could not be resolved.
Tell me more about this issue and how to resolve it
Additional Details
Host autodiscover.MYDOMAIN.ca could not be resolved in DNS Exception details:
Message: The requested name is valid, but no data of the requested type was found
Type: System.Net.Sockets.SocketException
Stack trace:
at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at Microsoft.Exchange.Tools.ExRca.Tests.ResolveHostTest.PerformTestReally()
ExRCA is attempting to contact the Autodiscover service using the HTTP redirect method.
The attempt to contact Autodiscover using the HTTP Redirect method failed.
Test Steps
Attempting to resolve the host name autodiscover.MYDOMAIN.ca in DNS.
The Host could not be resolved.
Tell me more about this issue and how to resolve it
Additional Details
Host autodiscover.MYDOMAIN.ca could not be resolved in DNS Exception details:
Message: The requested name is valid, but no data of the requested type was found
Type: System.Net.Sockets.SocketException
Stack trace:
at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at Microsoft.Exchange.Tools.ExRca.Tests.ResolveHostTest.PerformTestReally()
ExRCA is attempting to contact the Autodiscover service using the DNS SRV redirect method.
Failed to contact AutoDiscover using the DNS SRV redirect method.
Test Steps
Attempting to locate SRV record _autodiscover._tcp.MYDOMAIN.ca in DNS.
The Autodiscover SRV record wasn't found in DNS.
Tell me more about this issue and how to resolve it
Free Windows Admin Tool Kit Click here and download it now
September 14th, 2010 6:27pm
Are you talking about the internal forward lookup zone? If so, this test that you are running is only for external access. One other thing to note, only create a A record or the SRV record, not both. Pick one of the methods and stick
with it. Check you external DNS entries and also your Certificate SAN entries (if you have them). Tim Harrington - Catapult Systems - http://HowDoUC.blogspot.com
September 14th, 2010 6:43pm
Hi,
For this issue, you should add the Mydomain.ca into the SAN of the certificate, or add the SRV record in the Public DNS.
Thanks
Allen
Free Windows Admin Tool Kit Click here and download it now
September 19th, 2010 11:33pm