mox/mox-
Mechiel Lukkien 893a6f8911
implement outgoing tls reports
we were already accepting, processing and displaying incoming tls reports. now
we start tracking TLS connection and security-policy-related errors for
outgoing message deliveries as well. we send reports once a day, to the
reporting addresses specified in TLSRPT records (rua) of a policy domain. these
reports are about MTA-STS policies and/or DANE policies, and about
STARTTLS-related failures.

sending reports is enabled by default, but can be disabled through setting
NoOutgoingTLSReports in mox.conf.

only at the end of the implementation process came the realization that the
TLSRPT policy domain for DANE (MX) hosts are separate from the TLSRPT policy
for the recipient domain, and that MTA-STS and DANE TLS/policy results are
typically delivered in separate reports. so MX hosts need their own TLSRPT
policies.

config for the per-host TLSRPT policy should be added to mox.conf for existing
installs, in field HostTLSRPT. it is automatically configured by quickstart for
new installs. with a HostTLSRPT config, the "dns records" and "dns check" admin
pages now suggest the per-host TLSRPT record. by creating that record, you're
requesting TLS reports about your MX host.

gathering all the TLS/policy results is somewhat tricky. the tentacles go
throughout the code. the positive result is that the TLS/policy-related code
had to be cleaned up a bit. for example, the smtpclient TLS modes now reflect
reality better, with independent settings about whether PKIX and/or DANE
verification has to be done, and/or whether verification errors have to be
ignored (e.g. for tls-required: no header). also, cached mtasts policies of
mode "none" are now cleaned up once the MTA-STS DNS record goes away.
2023-11-09 19:47:26 +01:00
..
admin.go implement outgoing tls reports 2023-11-09 19:47:26 +01:00
cid.go add basic webserver that can do most of what i need 2023-02-28 22:19:24 +01:00
config.go implement outgoing tls reports 2023-11-09 19:47:26 +01:00
dir.go mox! 2023-01-30 14:27:06 +01:00
doc.go mox! 2023-01-30 14:27:06 +01:00
forkexec_unix.go make mox compile on windows, without "mox serve" but with working "mox localserve" 2023-10-14 10:54:07 +02:00
forkexec_windows.go make mox compile on windows, without "mox serve" but with working "mox localserve" 2023-10-14 10:54:07 +02:00
ip.go mox! 2023-01-30 14:27:06 +01:00
lastknown.go mox! 2023-01-30 14:27:06 +01:00
lifecycle.go make mox compile on windows, without "mox serve" but with working "mox localserve" 2023-10-14 10:54:07 +02:00
lifecycle_test.go add funtionality to import zip/tgz with maildirs/mboxes to account page 2023-02-16 09:57:27 +01:00
limitauth.go change mox to start as root, bind to network sockets, then drop to regular unprivileged mox user 2023-02-27 12:19:55 +01:00
lookup.go in smtpserver, accept delivery to postmaster@<hostname>, and also postmaster@ addresses for domains that don't have a postmaster address configured. 2023-04-24 12:04:46 +02:00
msgid.go fix bug with concurrent math/rand.Rand.Read 2023-11-09 17:17:26 +01:00
rand.go fix bug with concurrent math/rand.Rand.Read 2023-11-09 17:17:26 +01:00
recvid.go mox! 2023-01-30 14:27:06 +01:00
sleep.go mox! 2023-01-30 14:27:06 +01:00
tlsinfo.go mox! 2023-01-30 14:27:06 +01:00