Test an SMTP connection with STARTTLS and certificate
check mail server certificate | outlook certificate error when sending | starttls not working | openssl | smtp | tls | certificateopenssl s_client -connect mail.example.com:587 -starttls smtp -servername mail.example.comConnects to the mail server’s submission port, switches to encryption via STARTTLS and prints the certificate chain, validity and negotiated cipher. Useful when mail clients show certificate warnings or sending fails at the TLS handshake. Exit with QUIT or Ctrl+C.
Note: For port 25 the command stays the same, for IMAP the variant is -connect mail.example.com:143 -starttls imap.
Also searched as
- check mail server certificate
- outlook certificate error when sending
- starttls not working