3 ms·
This is a good question. It's a bit more complicated than just using SNI. First is certificate management. There is currently no automated way for mail provi
by agwa 5y ago
This is a good question. It's a bit more complicated than just using SNI.
First is certificate management. There is currently no automated way for mail providers to obtain TLS certificates for domains whose MX records point to them - i.e. there is no SMTP/MX equivalent to the Baseline Requirement's "Agreed-Upon Change to Website" domain validation method, or ACME's HTTP-01 challenge type. And in general domain operators don't want their mail providers to have certificates which could be used to impersonate their websites.
The certificate problem could be solved with SRVName certificates, which permit certificates to be scoped to a particular service on a host. Combined with an automated SMTP/MX-based validation method, this would permit mail providers to easily and securely get certificates for the domains whose mail they host. But there are thorny security-critical compatibility problems which are blocking the deployment of SRVName certificates. I wrote about the problem near the end of this blog post: https://www.agwa.name/blog/post/avoiding_dnssec https://www.agwa.name/blog/post/avoiding_dnssec
Second is that you need a mechanism for servers to remember that they should use TLS with a particular recipient domain, similar to HSTS. This could probably be accomplished with a simple SMTP extension that's included in the EHLO response.
- zokier 5y ago> And in general domain operators don't want their mail providers to have certificates which could be used to impersonate their websites. > The certificate problem could be solved with SRVName certificates, which permit certificates to be scoped to a particular service on a host. What about extended key usage extension, doesn't it function similarly without needing to fiddle with SANs? https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.12 https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1....
- agwa 5y agoYeah it seems like EKU could be used for this. But I might be overlooking something.