Skip to content

Instantly share code, notes, and snippets.

@schwabix
Last active September 19, 2019 09:32
Show Gist options
  • Save schwabix/db7bfff5ba7476e5840f to your computer and use it in GitHub Desktop.
Save schwabix/db7bfff5ba7476e5840f to your computer and use it in GitHub Desktop.
Howto test secure connection to email server
#SSL
openssl s_client -connect <MAIL_HOST>:465 -crlf -ign_eof
#StartTLS
openssl s_client -connect <MAIL_HOST>:25 -starttls smtp
#Without security
telnet <MAIL_HOST> 25
# sending SMTP email
mailx -v -s "test" \
-S smtp=smtp://<MAIL_HOST> \
-S from="no-reply@example.com" \
michael@sender-address.de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment