Mail SNI: only allow subdomains of main domain, if cert is missing main domain

Version 1.57

Bugfix
Finished

Related to this change in 1.54.0: https://directadmin.com/features.php?id=2166 The contents of a valid certificate can still be added to the /etc/virtual/snidomains, if the main domain.com is missing from the certificate, but only if a subdomain of that domain exists in the certificate. As before, self-signed certificates are never allowed, into the snidomains file.

Interested to try DirectAdmin? Get a 30-day Free Trial!