mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 11:04:38 +03:00
during dnscheck, if srv accountconfig record with just a dot, for a non-existent service, is missing, show as warning instead of error
the suggested dns records mention that these records are optional, but the dnscheck makes it look serious. not helpful. also remove unneeded whitespace in list of errors/warnings. for issue #184 by morki, thanks for reporting!
This commit is contained in:
@ -1404,7 +1404,11 @@ When enabling MTA-STS, or updating a policy, always update the policy first (thr
|
||||
if err != nil {
|
||||
addf(&r.SRVConf.Errors, "Looking up SRV record %q: %s", name, err)
|
||||
} else if len(req.srvs) == 0 {
|
||||
addf(&r.SRVConf.Errors, "Missing SRV record %q", name)
|
||||
if req.host == "." {
|
||||
addf(&r.SRVConf.Warnings, "Missing optional SRV record %q", name)
|
||||
} else {
|
||||
addf(&r.SRVConf.Errors, "Missing SRV record %q", name)
|
||||
}
|
||||
} else if len(req.srvs) != 1 || req.srvs[0].Target != req.host || req.srvs[0].Port != req.port {
|
||||
addf(&r.SRVConf.Errors, "Unexpected SRV record(s) for %q", name)
|
||||
}
|
||||
|
Reference in New Issue
Block a user