mox/webmail
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
..
api.go implement outgoing tls reports 2023-11-09 19:47:26 +01:00
api.json when message is delivered, save whether it is from a mailing list; in webmail, show if message was a forward or mailing list, and don't enable requiretls when sending to a list. 2023-11-02 20:03:47 +01:00
api.ts when message is delivered, save whether it is from a mailing list; in webmail, show if message was a forward or mailing list, and don't enable requiretls when sending to a list. 2023-11-02 20:03:47 +01:00
api_test.go implement "requiretls", rfc 8689 2023-10-24 10:10:46 +02:00
eventwriter.go initialize metric mox_panic_total with 0, so the alerting rule also catches the first panic for a label 2023-09-15 16:47:17 +02:00
lib.ts webmail: fix received date shown on message 2023-11-04 23:35:44 +01:00
message.go webmail: recognize q/b-word-encoded filenames in attachments in messages 2023-10-14 14:14:13 +02:00
message_test.go when making a message preview, also recognize []-enclosed "horizontal ellipsis" unicode character as a snip 2023-09-11 14:41:50 +02:00
msg.html webmail: ensure wrap of long header lines, instead of horizontal scrollbar in message header section 2023-10-12 22:08:13 +02:00
msg.js webmail: fix received date shown on message 2023-11-04 23:35:44 +01:00
msg.ts webmail: ensure wrap of long header lines, instead of horizontal scrollbar in message header section 2023-10-12 22:08:13 +02:00
text.html add webmail 2023-08-07 21:57:03 +02:00
text.js webmail: fix received date shown on message 2023-11-04 23:35:44 +01:00
text.ts add webmail 2023-08-07 21:57:03 +02:00
view.go webmail: recognize q/b-word-encoded filenames in attachments in messages 2023-10-14 14:14:13 +02:00
view_test.go make mox compile on windows, without "mox serve" but with working "mox localserve" 2023-10-14 10:54:07 +02:00
webmail.go webmail: recognize q/b-word-encoded filenames in attachments in messages 2023-10-14 14:14:13 +02:00
webmail.html webmail: autoresize address input field in compose window 2023-10-15 10:53:57 +02:00
webmail.js webmail: fix received date shown on message 2023-11-04 23:35:44 +01:00
webmail.ts webmail: add Delivered-To to example settingsPut call 2023-11-02 21:56:59 +01:00
webmail_test.go make mox compile on windows, without "mox serve" but with working "mox localserve" 2023-10-14 10:54:07 +02:00