Two different Autodiscover.xml?

Hi,

One weird thing is happening here on my environment.

I have two users on a different site and a different forest/domain with a trust relationship which have mailboxes here on our Exchange environment. Two users from there have different autodiscover responses (tried on the same PC with both accounts, two different autodiscover responses).

This is the correct autodiscover.XML :

<?xml version="1.0" encoding="utf-8"?>

<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">

  <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">

    <User>

      <DisplayName>Pepito Grillo</DisplayName>

      <LegacyDN>/o=Pepito/ou=Exchange Administrative Group (XXXXX)/cn=Recipients/cn=pepito</LegacyDN>

      <AutoDiscoverSMTPAddress>pepito@pepito.com</AutoDiscoverSMTAddress>

      <DeploymentId>208d08d6-7589-4751-9437-cfd53d939454</DeploymentId>

    </User>

    <Account>

      <AccountType>email</AccountType>

      <Action>settings</Action>

      <Protocol>

        <Type>EXCH</Type>

        <Server>CAS_CONTOSO.CORP</Server>

        <ServerDN>/o=PEPITO/ou=Exchange Administrative Group (XXX)/cn=Configuration/cn=Servers/cn=CAS_CONTOSO.CORP</ServerDN>

       <ServerVersion>7383807B</ServerVersion>

        <MdbDN>/o=Pepito/ou=Exchange Administrative Group (XXX)/cn=Configuration/cn=Servers/cn=CAS_CONTOSO.CORP/cn=Microsoft Private MDB</MdbDN>

        <PublicFolderServer>CAS402.CONTOSO.corp</PublicFolderServer>

        <AD>AD009.CONTOSO.corp</AD>

        <ASUrl>https://mail.CONTOSO.corp/EWS/Exchange.asmx</ASUrl>

        <EwsUrl>https://mail.CONTOSO.corp/EWS/Exchange.asmx</EwsUrl>

        <SharingUrl>https://mail.CONTOSO.corp/EWS/Exchange.asmx</SharingUrl>

        <EcpUrl>https://mail.CONTOSO.corp/ecp/</EcpUrl>

        <EcpUrl-um>?p=customize/voicemail.aspx&amp;exsvurl=1</EcpUrl-um>

        <EcpUrl-aggr>?p=personalsettings/EmailSubscriptions.slab&amp;exsvurl=1</EcpUrl-aggr>

        <EcpUrl-mt>PersonalSettings/DeliveryReport.aspx?exsvurl=1&amp;IsOWA=&lt;IsOWA&gt;&amp;MsgID=&lt;MsgID&gt;&amp;Mbx=&lt;Mbx&gt;</EcpUrl-mt>

        <EcpUrl-ret>?p=organize/retentionpolicytags.slab&amp;exsvurl=1</EcpUrl-ret>

        <EcpUrl-sms>?p=sms/textmessaging.slab&amp;exsvurl=1</EcpUrl-sms>

        <OOFUrl>https://mail.CONTOSO.corp/EWS/Exchange.asmx</OOFUrl>

        <UMUrl>https://mail.CONTOSO.corp/EWS/UM2007Legacy.asmx</UMUrl>

        <OABUrl>https://mail.CONTOSO.corp/OAB/5a381d70-53df-4152-8aff-fb70d5628f3c/</OABUrl>

      </Protocol>

      <Protocol>

        <Type>WEB</Type>

        <Internal>

          <OWAUrl AuthenticationMethod="Basic, Ntlm, WindowsIntegrated">https://mail.CONTOSO.corp/owa/</OWAUrl>

          <Protocol>

            <Type>EXCH</Type>

            <ASUrl>https://mail.CONTOSO.corp/EWS/Exchange.asmx</ASUrl>

          </Protocol>

        </Internal>

        <External>

          <OWAUrl AuthenticationMethod="Fba">https://mail.CONTOSO.com/owa/</OWAUrl>

        </External>

      </Protocol>

    </Account>

  </Response>

</Autodiscover>

The one which is taking a wrong answer add this to the previous XML file :

      <Protocol>

        <Type>EXPR</Type>

        <Server>mail.CONTOSO.com</Server>

        <SSL>On</SSL>

        <AuthPackage>Basic</AuthPackage>

        <ASUrl>https://mail.CONTOSO.com/EWS/Exchange.asmx</ASUrl>

        <EwsUrl>https://mail.CONTOSO.com/EWS/Exchange.asmx</EwsUrl>

        <SharingUrl>https://mail.CONTOSO.com/EWS/Exchange.asmx</SharingUrl>

        <EcpUrl>https://mail.CONTOSO.com/ecp/</EcpUrl>

        <EcpUrl-um>?p=customize/voicemail.aspx&amp;exsvurl=1</EcpUrl-um>

        <EcpUrl-aggr>?p=personalsettings/EmailSubscriptions.slab&amp;exsvurl=1</EcpUrl-aggr>

        <EcpUrl-mt>PersonalSettings/DeliveryReport.aspx?exsvurl=1&amp;IsOWA=&lt;IsOWA&gt;&amp;MsgID=&lt;MsgID&gt;&amp;Mbx=&lt;Mbx&gt;</EcpUrl-mt>

        <EcpUrl-ret>?p=organize/retentionpolicytags.slab&amp;exsvurl=1</EcpUrl-ret>

        <EcpUrl-sms>?p=sms/textmessaging.slab&amp;exsvurl=1</EcpUrl-sms>

        <OOFUrl>https://mail.CONTOSO.com/EWS/Exchange.asmx</OOFUrl>

        <UMUrl>https://mail.CONTOSO.com/EWS/UM2007Legacy.asmx</UMUrl>

        <OABUrl>https://mail.CONTOSO.com/OAB/5a381d70-53df-4152-8aff-fb70d5628f3c/</OABUrl>

        <CertPrincipalName>none</CertPrincipalName>

      </Protocol>

Any ideas?

Exchange servers 2010 SP3 Rollup 4

Outlook 2010 as the clients

Which is bothering me is why two users of the same environment is getting two different responses.

Cheers guys and thanks in advance,


February 6th, 2015 1:31pm

Hi,

Please notice the Outlook Provider type in the Autodiscover.xml: EXCH, EXPR and WEB

The EXPR setting references the Exchange HTTP protocol that is used by Outlook Anywhere. This setting includes the external URLs for the Exchange services that you have enabled, which are used by clients that access Exchange from the Internet.

The EXCH setting references the Exchange RPC protocol that is used internally. This setting includes port settings and the internal URLs for the Exchange services that you have enabled.

These two accounts which connected to Exchange server using Autodiscover service are connected from internal Exchange environment (EXCH) and external internet environment (EXPR) respectively. It is the expected behavior. For more information about the Autodiscover Service and Outlook Providers, please refer to:

http://blogs.technet.com/b/exchange/archive/2008/09/26/3406344.aspx

Regards,

Free Windows Admin Tool Kit Click here and download it now
February 9th, 2015 3:45pm

Hi Winnie and thanks for the answer,

Yes, I understand that the EXCH and the EXPR providers are OK and that's the expected behaviour.

My question is why both mailboxes gets different autodiscover settings (I guess should be the same autodiscover.xml). Tried on the same PC.

February 9th, 2015 6:56pm

Hi,

I noticed that these two users are from different domain\forest. If the user AD account who is using EXCH for autodiscover.xml is using Outlook in the same domain with the mailbox location. 

Also confirm the PC is domain-joined or not.

Regards,

Free Windows Admin Tool Kit Click here and download it now
February 11th, 2015 7:54am

No, it is not domain joined to the Exchange environment. It is domain joined on their domain.

By the way, I've re-read your answer and I think I've got into the solution (I will test it shortly, but seems the problem).

And yes, the autodiscover was doing his job, so, the issue was the issue without EXPR have the Outlook Anywhere disabled (on mailbox basis) and the other one's not, and autodiscover giving the EXPR provider.

so, with a get-casmailbox you can check the MAPIBlockOutlookRPCHTTP

and with a set-casmailbox you can set it to $true to block Outlook anywhere.

Anyway, you pointed me to the right direction ;)

February 12th, 2015 4:57am

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

Other recent topics Other recent topics