Commit Graph

13 Commits

Author SHA1 Message Date
e7e023c6d0 update dependency golang.org/x/sys to latest 2024-08-22 20:39:41 +02:00
03e220c749 update dependencies 2024-03-08 09:28:09 +01:00
62db2af846 update dependencies 2024-01-05 11:17:11 +01:00
8c99e54ec1 update dependencies 2023-11-09 21:19:51 +01:00
daa908e9f4 implement dnssec-awareness throughout code, and dane for incoming/outgoing mail delivery
the vendored dns resolver code is a copy of the go stdlib dns resolver, with
awareness of the "authentic data" (i.e. dnssec secure) added, as well as support
for enhanced dns errors, and looking up tlsa records (for dane). ideally it
would be upstreamed, but the chances seem slim.

dnssec-awareness is added to all packages, e.g. spf, dkim, dmarc, iprev. their
dnssec status is added to the Received message headers for incoming email.

but the main reason to add dnssec was for implementing dane. with dane, the
verification of tls certificates can be done through certificates/public keys
published in dns (in the tlsa records). this only makes sense (is trustworthy)
if those dns records can be verified to be authentic.

mox now applies dane to delivering messages over smtp. mox already implemented
mta-sts for webpki/pkix-verification of certificates against the (large) pool
of CA's, and still enforces those policies when present. but it now also checks
for dane records, and will verify those if present. if dane and mta-sts are
both absent, the regular opportunistic tls with starttls is still done. and the
fallback to plaintext is also still done.

mox also makes it easy to setup dane for incoming deliveries, so other servers
can deliver with dane tls certificate verification. the quickstart now
generates private keys that are used when requesting certificates with acme.
the private keys are pre-generated because they must be static and known during
setup, because their public keys must be published in tlsa records in dns.
autocert would generate private keys on its own, so had to be forked to add the
option to provide the private key when requesting a new certificate. hopefully
upstream will accept the change and we can drop the fork.

with this change, using the quickstart to setup a new mox instance, the checks
at internet.nl result in a 100% score, provided the domain is dnssec-signed and
the network doesn't have any issues.
2023-10-10 12:09:35 +02:00
0d8603f9e1 update latest deps 2023-09-20 16:52:18 +02:00
aed23d900a update dependencies 2023-08-15 10:58:01 +02:00
3ef1f31359 update dependencies 2023-07-28 22:47:28 +02:00
c2448e5adc update to latest dependencies 2023-07-03 09:13:19 +02:00
dae73eb32d update golang.org/x dependencies 2023-04-20 15:07:24 +02:00
ba75c73716 update to latest golang.org/x/crypto 2023-03-06 08:35:57 +01:00
6df4b454d5 update dependencies, including bolt with stability fixes 2023-02-17 18:55:01 +01:00
cb229cb6cf mox! 2023-01-30 14:27:06 +01:00