change the autodiscover SRV record to point to the mail server hostname directly, not to a cname

srv targest shouldn't be cname's. bind was warning about it.
This commit is contained in:
Mechiel Lukkien
2023-10-13 08:51:02 +02:00
parent 850f4444d4
commit 67fe88f431
3 changed files with 7 additions and 2 deletions

View File

@ -626,7 +626,7 @@ func DomainRecords(domConf config.Domain, domain dns.Domain, hasDNSSEC bool) ([]
records = append(records,
"; Autoconfig is used by Thunderbird. Autodiscover is (in theory) used by Microsoft.",
fmt.Sprintf(`autoconfig.%s. CNAME %s.`, d, h),
fmt.Sprintf(`_autodiscover._tcp.%s. SRV 0 1 443 autoconfig.%s.`, d, d),
fmt.Sprintf(`_autodiscover._tcp.%s. SRV 0 1 443 %s.`, d, h),
"",
// ../rfc/6186:133 ../rfc/8314:692