Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 724 Bytes

2017-12-12-test_starttls_smtp_auth.md

File metadata and controls

29 lines (20 loc) · 724 Bytes

Test starttls smtp auth

Category: sysadmin Generated on 2017-12-12 source: source source: source2

If the SMTP requires STARTTLS, telnet can't be used.

We can use openssl:

$ openssl s_client -starttls smtp -connect host:port -crlf -ign_eof

to initiate and encrypted connection.

Then command AUTH LOGIN start auth process:

AUTH LOGIN
334 VXNlcm5hbWU6 ( Server returns username as a base64 string )
--base64 encoded username--
334 UGFzc3dvcmQ6 ( Server returns password as a base64 string )
--base64 encoded password--
235 Authentication succeeded