Problem:
How can I check the SSL certificate offered by an SMTP server?
Solution:
For this you can use OpenSSL and check the certificate using the below command. The example I have used is checking Amazon’s SMTP servers:
openssl s_client -connect email-smtp.us-east-1.amazonaws.com:25 -starttls smtp