I have a Exchange 2010 instance where 2 different domains, Fabrikam.com and Contoso.com, are using the same server that has all 3 Exchange server roles installed, CAS/Transport/Mailbox. All of the clients are using RPC over HTTPS to connect over the open internet and none are members of the Exchange server domain, they are all geographically dispursed.
I have added a secondary OWA virtual directory with the following PowerShell command:
New-OwaVirtualDirectory -WebSiteName "Contoso.com"
I have configured each of these web sites with the appropriate DNS A record and SSL certificate:
So now the server has 2 IIS sites with 2 IP addresses, each bound to 1 of the SSL certificates. This all works well and as expected.
For the autodiscover record, I've configured each with an SRV record as follows:
_autodiscover._tcp.contoso.com priority = 10 weight = 10 port = 443 svr hostname = mail.contoso.com
_autodiscover._tcp.fabrikam.com priority = 10 weight = 10 port = 443 svr hostname = mail.fabrikam.com
The problem is, when the autodiscover XML is returned, the OWAUrl property is returning the URL for BOTH CAS URLs and not just the CAS url for the appropriate domain. I am aware you can use the AutoDiscoverSiteScope property and configure AD sites to control which URLs get displayed to specific IP ranges, however is it possible to return a URL based on which user or which mailbox database each user is in?
What are my options here to return the appropriate autodiscover configuration?
If anything is unclear please let me know and I'll update this question. Thanks in advance for your time.