You are here

Test SMTP AUTH connection

Encode to Base64 your userid (e-mail address) and password
perl -MMIME::Base64 -e 'print encode_base64("\000username@domain.com\000password")'
AHVzZXJuYW1lLmNvbQBwYXNzd29yZA==
Connect to the mail server with openssl:

SSL test:
openssl s_client -showcerts -connect 1.2.3.4:465
ehlo testing
AUTH PLAIN AHVzZXJuYW1lLmNvbQBwYXNzd29yZA==
mail from:
rcpt to:
data
From: Name
To: Nobody
Subject: test2050

test 20:50
.
quit

STARTTLS test
openssl s_client -showcerts -starttls smtp -crlf -connect 1.2.3.4:25
ehlo testing
AUTH PLAIN AHVzZXJuYW1lLmNvbQBwYXNzd29yZA==
mail from:
rcpt to:
data
From: Name
To: Nobody
Subject: test2050

test 20:50
.
quit