Replacing CAS, autodiscovery

Hello!

The situation is following:
1) installed MAILCAS.example.com with MBX and CAS roles. Created AUTODISCOVER.example.com (cname to MAILCAS) in public DNS servers.
2) installed MAIL.example.com with CAS role.
3) installed MBX1 and MBX2 with MBX role and created DAG.
4) moved mailboxes from MAILCAS to DAG.
5) changed AUTODISCOVER.example.com to point to MAIL.example.com
5) Now I want to remove server MAILCAS. Problem is that I get unwanted information from autodiscovery. There are still instructions to MAILCAS.

I used Connectivity Analyzer. Exchange Web services connectivity test (service account access) says this.
Autodiscover and Exchange ActiveSync test says this. Outlook Autodiscover test says this.

In Exchange Management Shell:

[PS] > Get-ActiveSyncVirtualDirectory | ft -autosize
Name                                           Server InternalUrl
----                                           ------ -----------
Microsoft-Server-ActiveSync (Default Web Site) mailcas   https://mailcas.example.com/Microsoft-Server-ActiveSync
Microsoft-Server-ActiveSync (Default Web Site) MAIL   https://mail.example.com/Microsoft-Server-ActiveSync

[PS] > Get-OabVirtualDirectory | ft -autosize
Server Name                   Internal Url              External Url
------ ----                   ------------              ------------
mailcas   OAB (Default Web Site) https://mailcas.example.com/OAB https://mailcas.example.com/OAB
MAIL   OAB (Default Web Site) https://mail.example.com/OAB https://mail.example.com/OAB

[PS] > Get-OwaVirtualDirectory | ft server,name,internalurl,externalurl
Server                        Name                          InternalUrl                   ExternalUrl
------                        ----                          -----------                   -----------
mailcas                       owa (Default Web Site)        https://mailcas.example.com/owa     https://mailcas.example.com/owa
MAIL                          owa (Default Web Site)        https://mail.example.com/owa     https://mail.example.com/owa

[PS] > Get-WebServicesVirtualDirectory | ft server,name,internalurl,externalurl

Server                        Name                          InternalUrl                   ExternalUrl
------                        ----                          -----------                   -----------
mailcas                       EWS (Default Web Site)        https://mailcas.example.com/ews/... https://mailcas.example.com/ews/...
MAIL                          EWS (Default Web Site)        https://mail.example.com/EWS/... https://mail.example.com/EWS/...

I really don't have idea where comes the information from MAILCAS. What did I forget?


January 19th, 2015 10:40am

Hi Lote,

Guess you missed Setting the AutoDiscoverServiceInternalUri on the new server.

Also check if Active Directory is populated with correct SCP (using ADSI).

Example below:

Set-ClientAccessServer -Identity "CAS-01" -AutoDiscoverServiceInternalUri "https://cas01.contoso.com/autodiscover/autodiscover.xml" -AutoDiscoverSiteScope "Mail"

http://technet.microsoft.com/en-in/library/bb125157(v=exchg.150).aspx

You might also want to wait 48hrs, as changes to the Public DNS and user cache would take some time to flush.

 

Free Windows Admin Tool Kit Click here and download it now
January 19th, 2015 11:00am

So my current get-clientaccesserver is not enough? AutoDiscoverServiceInternalUri is correct and
AutoDiscoverSiteScope is {Default-First-Site-Name}.

Sorry, I am quite confused. And I do not have any good questions to ask:)

January 19th, 2015 12:58pm

You need to uninstall mailcas (which will remove it from AD), or to set all the virtual directory URL belongs to mailcas to point to mail.
Free Windows Admin Tool Kit Click here and download it now
January 19th, 2015 3:50pm

Hi,

According to testing log, please run following command to double check the setting about Outlook Anywhere and autodiscover:
Get-OutlookAnywhere | FL Identity,*host*,*auth*
Get-AutodiscoverVirtualDirectory | FL Identity,*URL*,*auth*
Get-ClientAccessServer | FL Identity,*uri*

If you want to remove the MAILCAS server, please make sure all record point to this server be changed to new CAS server, for example both DNS record for internal and external (mail.contoso.com, autodiscover.contoso.com), and also ensure all mailbox move to new server.
We recommend that we can shut down the MAILCAS for serval days to ensure everything works fine before remove this server.

Best Regards,
Allen Wang

January 20th, 2015 6:55am

Here are the outputs of Get- commands. Nothing suspicious (for me).

Free Windows Admin Tool Kit Click here and download it now
January 20th, 2015 10:04am

Hi Lote,

At a glance, your autodiscover seems to be fine.(Didn't check too deep though)

Update all the virtual directories for all servers with new InternalURL, ExternalURL.

Then run the tests again.

Follow below link to update\configure all the VDs

Exchange 2013 Client Access server configuration

January 21st, 2015 6:31am

I updated OAB, EWS, MAPI and ActiveSync in MAILCAS (from mailcas.example.com/BLAAAH to mail.example.com/BLAAAH) and made shut down. For client's connections it is enough, Outlook connects to mail.example.com after some time.

Case closed for autodiscovery. Soon I'll uninstall mailcas.

But there is another problem and I will make another question.

Free Windows Admin Tool Kit Click here and download it now
April 1st, 2015 1:03pm

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

Other recent topics Other recent topics