mox/dns
Mechiel Lukkien 7f5e1087d4
admin: better handling of disabled mta-sts during self-check
if admin has disabled mta-sts for a domain, we still check for records &
policies, but won't mark it as error when they don't exist. we do now keep
warning that mta-sts isn't enabled, otherwise we would start showing a green
"ok".

this also fixes the mta-sts code returning ErrNoPolicy when mtasts.<domain>
doesn't exist. the dns lookup is done with the reguler "net" package dns lookup
code, not through adns, so we look for two types of DNSError's.

noticed a while ago when testing with MTA-STS while debugging TLS connection
issues with MS.
2024-11-24 13:30:29 +01:00
..
dns.go admin: better handling of disabled mta-sts during self-check 2024-11-24 13:30:29 +01:00
dns_test.go give delivering to mx targets with underscores in name a chance of succeeding 2023-10-25 13:01:11 +02:00
examples_test.go add more documentation, examples with tests to illustrate reusable components 2023-12-14 20:20:17 +01:00
ipdomain.go when logging email addresses with IDNA domain and/or special characters or utf8 in localpart, log both native utf8 form and form with escape localpart and ascii-only domain 2023-03-09 20:18:34 +01:00
mock.go replace packages slog and slices from golang.org/x/exp with stdlib 2024-02-08 14:49:01 +01:00
resolver.go replace packages slog and slices from golang.org/x/exp with stdlib 2024-02-08 14:49:01 +01:00