user198729
user198729

Reputation: 63676

How to conduct smtp with ssl inside a prompt?

If without ssl,I can simply:

telnet mx 25
EHLO xxxx
...

But when it's encrypted with ssl,is it still possible to type these commands step by step?

Upvotes: 1

Views: 88

Answers (1)

jspcal
jspcal

Reputation: 51914

yes, if server is using STARTTLS:

openssl s_client -starttls smtp -crlf -connect host:25

if using SSL directly:

openssl s_client -crlf -connect host:465

from http://www.openssl.org/docs/apps/openssl.html:

s_client - This implements a generic SSL/TLS client which can establish a transparent connection to a remote server speaking SSL/TLS. It's intended for testing purposes only and provides only rudimentary interface functionality but internally uses mostly all functionality of the OpenSSL ssl library.

Upvotes: 2

Related Questions