Yes, we are using the same e-mail domain, like contoso.com, for both Exchange 2007 and Exchange 2013 mailboxes.
I will give here some more details for setup. Exchange 2007 is deployed in 3 AD sites:
- AD site A - Internet facing site, two CAS 2007, two CAS 2013, ISA Server 2006 reverse proxy, several Mailbox servers
- AD site B - non-Internet facing site, one CAS 2007, one CAS 2013, one Mailbox server
- AD site C - non-Internet facing site, one CAS 2007, one CAS 2013, one Mailbox server.
In AD site A, on ISA 2006 external interface, there is a public IP with e-mail domain DNS name pointing to it
- legacy.contoso.com - listener D in ISA 2006, points to web farm of two Exchange 2007 CAS in AD site A
- mail.contoso.com - listener D in ISA 2006, points to web farm of two Exchange 2013 CAS in AD site A
Configuration on two Exchange 2013 CAS for Autodiscover virtual directory:
[PS] C:\Windows\system32>Get-AutodiscoverVirtualDirectory -Server CAS2013_01 | fl Identity,*Authentication*
Identity : CAS2013_01\Autodiscover (Default Web Site)
InternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated, WSSecurity, OAuth}
ExternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated, WSSecurity, OAuth}
LiveIdNegotiateAuthentication : False
WSSecurityAuthentication : True
LiveIdBasicAuthentication : False
BasicAuthentication : True
DigestAuthentication : False
WindowsAuthentication : True
OAuthAuthentication : True
AdfsAuthentication : False
[PS] C:\Windows\system32>Get-AutodiscoverVirtualDirectory -Server CAS2013_01 | fl Identity,*Authentication*
Identity : CAS2013_02\Autodiscover (Default Web Site)
InternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated, WSSecurity, OAuth}
ExternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated, WSSecurity, OAuth}
LiveIdNegotiateAuthentication : False
WSSecurityAuthentication : True
LiveIdBasicAuthentication : False
BasicAuthentication : True
DigestAuthentication : False
WindowsAuthentication : True
OAuthAuthentication : True
AdfsAuthentication : False
Configuration on two Exhange 2007 CAS in AD site A
[PS] C:\Windows\system32>Get-AutodiscoverVirtualDirectory -Server CAS2007_01 | fl Identity, *Authentication*
Identity : CAS2007_01\Autodiscover (Default Web Site)
InternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated}
ExternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated}
BasicAuthentication : True
DigestAuthentication : False
WindowsAuthentication : True
[PS] C:\Windows\system32>Get-AutodiscoverVirtualDirectory -Server CAS2007_02 | fl Identity, *Authentication*
Identity : CAS2007_02\Autodiscover (Default Web Site)
InternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated}
ExternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated}
BasicAuthentication : True
DigestAuthentication : False
WindowsAuthentication : True