try fixing accepting incoming tls reports for mail host, again

this is another place with a check on the policy domain...
This commit is contained in:
Mechiel Lukkien 2023-11-13 08:36:13 +01:00
parent ae37b3ed4d
commit 58d84f3882
No known key found for this signature in database

View file

@ -260,7 +260,7 @@ func analyze(ctx context.Context, log *mlog.Log, resolver dns.Resolver, d delive
log.Info("tlsrpt policy domain", mlog.Field("domain", p.Policy.Domain))
if d, err := dns.ParseDomain(p.Policy.Domain); err != nil {
log.Infox("parsing domain in tls report", err)
} else if _, ok := mox.Conf.Domain(d); ok {
} else if _, ok := mox.Conf.Domain(d); ok || d == mox.Conf.Static.HostnameDomain {
known = true
break
}