Issue Description
Dear stalwart support,
I have problems receiving mails from some providers implementing outbound DANE. The problem has been troubleshooted on their side and the issue stems from stalwart using the combination of DANE-TA with SPKI(1) but not sending the root certificate.
Expected Behavior
When using DANE-TA with SPKI(1) instead of Full(0) the corresponding root certificate must be sent by the mail server (as else it cannot calculate and check the public key hash).
The exact issue is described here: RFC 7671 - The DNS-Based Authentication of Named Entities (DANE) Protocol: Updates and Operational Guidance
Actual Behavior
stalwart only sends the server certificate and intermediates, but not the root CA
Reproduction Steps
Try to receive mail from a provider with strict DANE checking
Stalwart Version
v0.16.x
Installation Method
Binary (Linux)
Database Backend
RocksDB
Blob Storage
Filesystem
Search Engine
Internal
Directory Backend
OIDC
Additional Context
Please consider also sending the Root CA on TLS connections or remove DANE-TA from the default DANE DNS records.
Having both DANE-EE and DANE-TS is redundant, as with DANE-EE the server certificate alone is already strictly matched to the TLSA record and there seems to be no reason to use both at the same time, they serve different purposes.
DANE-EE strictly matches to the server certificate public key offered by the server and SNI has to be ignored. It makes it easy if you have a single infrastructure serving lots of different DANE endpoints as you can use the same certificate for all endpoints. With DANE-EE certificate validity and SAN are strictly ignored, only the public key is checked.
DANE-TA is used to have a validated chain of trust (SNI is used, certificate validity and SAN are checked up to the Root CAs public keys) but up to a root of trust that you choose instead of the sender. It is for infrastructures with complex architecture using different servers which would make it impractical to share a key between so many endpoints.
Thanks for the great work you do on stalwart, I really appreciate this project.
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on