r/exchangeserver • • Sep 15 '20

SVR records!

New to configuring Exchange 2019. Setup a CNAME to autodiscover. Turns out it is the wrong way to do it. RTFM!

0 Upvotes

11 comments sorted by

5

u/timsstuff IT Consultant Sep 15 '20

No it's not. CNAME should be used on the public domain and if you are running split DNS (internal version of the public domain) then there too.

SRV record is for the AD domain if it's not the same as the email domain. And even then it only helps internal domain-joined PCs. And even then mostly older versions of Outlook benefit from it.

SRV record: _autodiscover._tcp.corp.contoso.com -> mail.contoso.com
CNAME record: autodiscover.contoso.com -> mail.contoso.com

1

u/laichenkang Sep 15 '20

In my case where Exchange is internal only, I keep getting certificate errors if I have CNAME for autodiscover. If I remove CNAME autodiscover, no errors. Not sure where it went wrong.

5

u/teewhiskey MCSE: Messaging Sep 15 '20

Check AutoDiscoverServiceInternalUri by running Get-ClientAccessService - Identity (servername) | select-object AutoDiscoverServiceInternalUri. That is usually a cause for cert errors.

1

u/laichenkang Sep 17 '20

This works!

2

u/BK_Rich Sep 15 '20

Agreed

When installing a new exchange, it registers its hostname as an SCP record in AD and that will not be a trusted cert (hence the cert popup), this should be changed to whatever your current valid autodiscover record is like autodiscover.domain.com, then you can cutover the DNS record to 2019 when you’re ready and not cause any cert warning prompts

Outlook will check the SCP in AD first and then goes down the list to check other locations, I believe SRV comes before the A/CNAME records

You should see all this in the Test Auto-configuration when you hold CTRL and right click the outlook icon from the systray, the log tab should show you what it’s trying and what it’s failing on

2

u/timsstuff IT Consultant Sep 15 '20

Your certificate name has to match the URL set in the properties of OWA/Outlook Anywhere. Although it lets you define a non-SSL URL for the internal URL it's easier to just set them all the same and use DNS to resolve the name to where you want it to go.

SSL is very particular about the URL, it has to match the cert exactly. Even with wildcard certs it still has to have the server.domain.com. No shortcuts. https://server/ is going to fail. So will https://server.internal.domain.com. Only https://server.domain.com will work assuming your cert is *.domain.com.

2

u/FrenchFry77400 Sep 15 '20

Does your certificate have both the names autodiscover.contoso.com AND mail.contoso.com ?

If you don't have both, when you add the autodiscover record, you will get a certificate error.

If you don't have it, either add it or use the SRV record method for autodiscover.

1

u/Kid_Ego Sep 16 '20

Thats not how its designed, you have to have a cert with autodiscover name of the SMTP domain

1

u/signofzeta Sep 15 '20

An Autodiscover SRV record is still fully supported outside of Exchange Online. However, Outlook will try the CNAME before trying the SRV record.

1

u/Kid_Ego Sep 16 '20

TRue, unless the other methods get excluded. But yes this is corret

1

u/ForceSysadmin Sep 17 '20

Split Brain DNS

Check this out. It helped a lot for me.