Exchange 2010 Autodiscover - Different Mail and AD domains

Hi,

I am sorry if this has been answered before but I couldn't find a post although there were many similar ones that were related to my problem.

I have an external DNS of abc.com.au with the activesync url email.abc.com.au

I have an internal DNS of xyz.com.au which is not resolvable externally.

I have Activesync working with manual setup where I specify email.abc.com.au along with the username and domain.

When I try to use Autodiscover it does not work. I get the message:

"Failed to search exchange server automatically. Enter settings manually."

When I click on edit details it appear to auto fill the below:

Email Address is correct. username@abc.com.au

Domain\Usrname is incorrect. It has "\usrname instead of xyz\username

Exchange server is incorrect. It has abc.com.au instead of email.abc.com.au

When I do a test on https://www.testexchangeconnectivity.com using the same information I put into the activesync settings for Autodiscover the response I get is:

<?xml version="1.0"?>
<Autodiscover xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006">
<Culture>en:us</Culture>
<User>
<DisplayName>FirstName LastName</DisplayName>
<EMailAddress>FirstName.LastName@abc.com.au</EMailAddress>
</User>
<Action>
<Settings>
<Server>
<Type>MobileSync</Type>
<Url>https://email.abc.com.au/Microsoft-Server-ActiveSync</Url>
<Name>https://email.abc.com.au/Microsoft-Server-ActiveSync</Name>
</Server>
</Settings>
</Action>
</Response>
</Autodiscover>

I cant figure out what is going wrong. email.abc.com.au is resolvable both internally and externally.

I can only assume based of the xml response above that the internall domain and server address are not being passed through correctly. I just dont know how to check

I have rechecked that all Exchange Virtual direcuses use email.abc.isis.com.au as their URL as that is the URL we have the certificate for. (*.abc.com.au)

Does anyone have any ideas as to where I can look

June 12th, 2013 8:24am

Hi,

Run the following cmdlet:

Get-ActiveSyncVirtualDirectory | fl identity,InternalUrl,ExternalUrl

The expected output should be like:

Identity : SERVER Name\Microsoft-Server-ActiveSync (Default Web Site)
InternalUrl : https://domain.local/Microsoft-Server-ActiveSync
ExternalUrl : https://mail.domain.com/Microsoft-Server-ActiveSync

If not, correct it by Set-ActiveSyncVirtualDirectory and restart IIS Services to take effect the new settings

Free Windows Admin Tool Kit Click here and download it now
June 12th, 2013 9:33am

Thanks for that. 

Currently neither Internal or External have anything listed. I had read online (cant remember where) that those didn't need to be set.

I will set them shortly to test. 

So I understand though. External will be https://email.abc.com.au/Microsoft-Server-ActiveSync

In your example what is the Internal one pointing to? Internally there is a DNS entry cas.xyz.com.au that points to the Client Access Server in Exchange. In saying that https://email.abc.com.au also has a CNAME internally that points to CAS.xyz.com.au

June 12th, 2013 11:25am

Hi,

Internal can be pointed to cas.xyz.com.au

Free Windows Admin Tool Kit Click here and download it now
June 12th, 2013 12:10pm

Hi,

Sorry I read your comment wrong last night. 

The ActiveSync Virtual Directory's are set correctly. It is the Autodiscover VD that has empty Internal and External URLs.

ActiveSync wouldn't be working if the ActiveSync Virtual Directory's would it?

June 13th, 2013 5:13am

Hi,

Autodiscover Virtual Directory also has to set correctly: http://technet.microsoft.com/en-us/library/aa998601%28v=exchg.141%29.aspx

Free Windows Admin Tool Kit Click here and download it now
June 13th, 2013 6:27am

Thanks for that. I am setting them to https://email.abc.com.au

Will let you know how it goes.

June 13th, 2013 7:37am

Sorry for the delay in reply.

I have updated the AutoDiscover site to list https://email.abc.com.au but no change.

After the message saying incorrect settings the settings the manual screen shows are still the same:

Domain\username: \username

Exchange server: abc.com.au

Any ideas?

Free Windows Admin Tool Kit Click here and download it now
June 20th, 2013 1:23am

Are your UPN set to your Emailaddress? If you require authentication like if you publish Autodiscover using a TMG you need to make sure that the UPN is set to your Emailaddress. 

When autodiscover is setup and working you should only need to enter emailaddress and password.

If you need to enter domain\username because your samaccountname is not that same as your emailaddress you can change the UPN to be the emailaddress to get arround this.

\Mattias

July 3rd, 2013 5:30am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics