I am experiencing TransientFailures because the TLS cert isn’t matching the delivery domain. The situation is the cert is a wildcard and the delivery domain is a host deep under the wildcarded domain.
MX Server in question is a CNAME to mx.hostedemail.com run by OpenSRS
Specifically, the server responds with a TLS cert for: TLS peer DN="/C=CA/ST=Ontario/L=Toronto/O=Tucows Inc/CN=*.hostedemail.com"
The mx domain it is supposed to handling data for is something like mx.emailhome.com.cust.a.hostedemail.com
Is the rejection coming from Kumo not treating the deeply nested domain as covered by the wildcard?
Hey there @impressive-porcupine, thanks for posting. Please read the “Troubleshooting” and “How to Ask for Help” buttons below. If you would like a 1:1 support session from the KumoMTA team, details are at the “Book a Support Session” button below.
I have done almost all my testing with a wildcard cert and have not seen any issues. As Wez said above, please provide the transfail log, or the general log that includes the transfails so we can see the actual error. Also please share the debug journal and init.lua
I will gather the info to reproduce it when I have spare time. I do not want to show the actual domain and email account, but I will redo it with demo/disposable info that can be published. In the meantime I switched that domain to be OpportunisticInsecure in the shaping.toml for the interim
Also I found this that says (with regard to web ssl) wildcard domains should only cover one level and the wildcard should only cover the leftmost host, so it would seem a cert for *.example.com should not be valid for sub2.sub1.example.com - https://serverfault.com/questions/104160/wildcard-ssl-certificate-for-second-level-subdomain I would assume the mail TLS would follow the same conventions, and therefore it is an issue with the way that OpenSRS is using their wildcard cert. Is it not the case?
@faithful-ostrich when you say you tested with a wildcard cert, are you also saying that the cert had covered a deeply nested subdomain and that didn’t produce issues?
As an aside, if Opportunistic allows for non-TLS communication, why wouldn’t it assume OpportunisticInsecure? Wouldn’t it make more logical sense for the edge case to be OpportunisticSecure?