Last active
September 19, 2019 09:32
-
-
Save schwabix/db7bfff5ba7476e5840f to your computer and use it in GitHub Desktop.
Howto test secure connection to email server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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