add a suggestion for tlsrpt no-policy-found result

This commit is contained in:
Mechiel Lukkien 2023-11-12 12:08:33 +01:00
parent f90b802d4b
commit 6a39f2cc54
No known key found for this signature in database

View file

@ -196,6 +196,7 @@ const (
// Recipient domain did not have MTA-STS policy, or mail host (TSLA base domain) // Recipient domain did not have MTA-STS policy, or mail host (TSLA base domain)
// did not have DANE TLSA records. // did not have DANE TLSA records.
NoPolicyFound PolicyType = "no-policy-found" NoPolicyFound PolicyType = "no-policy-found"
// todo spec: ../rfc/8460:440 ../rfc/8460:697 suggest to replace with values like "no-sts-found" and "no-tlsa-found" to make it explicit which policy isn't found. also easier to implement, because you don't have to handle leaving out an sts no-policy-found result for a mail host when a tlsa policy is present.
) )
func (rp ResultPolicy) equal(orp ResultPolicy) bool { func (rp ResultPolicy) equal(orp ResultPolicy) bool {