Hello Everyone,
I have a need to setup TLS secure email with several hundred partner companies. I would like to take a list of these domain names and do two items.
First, have the script lookup the MX records for each domain and store the result.
Secondly, take the stored list of MX servers and query each one to return the issue and publisher to each responding certificate.
For those that don't have a certificate installed, we'll just leave it blank.
I usually check for existing certficates and their status by using openssl with the cmd below:
openssl s_client -connect hostname.domain.com:25 -crlf -starttls smtp
Openssl is a free app that can view certificate information on mail servers. This is a pretty unique task, so increasing the points.
Thanks