—— Testing SMTP-AUTH Logins ——

First, you'll need the encoded version of the username and password auth string. Assuming your login username is someone@somewhere.com and your login password is my-password, at the command prompt:

% perl -MMIME::Base64 -e 'print encode_base64("\000someone\@somewhere.com\000my-password")'
AHNvbWVvbmVAc29tZXdoZXJlLmNvbQBteS1wYXNzd29yZA==

Note: Be sure to notice the \000 before and after the username piece. Remember that you need to escape any special characters (like @ or ! or \) with a \.

Next, telnet to the SMTP server:

% telnet your-hostname-or-ip-address 25
Trying 24.248.88.153...
Connected to academickeys.com.
Escape character is '^]'.
220 afekan.academickeys.com - ESMTP - Postfix - Attn: UCE trespassers will be pursued.

Then, send your EHLO hostname and the SMTP server will tell you what it supports:

EHLO Localhost
250-afekan.academickeys.com
250-PIPELINING
250-SIZE 52428800
250-ETRN
250-AUTH LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

Log in like this:

AUTH PLAIN AHNvbWVvbmVAc29tZXdoZXJlLmNvbQBteS1wYXNzd29yZA==
235 ok, go ahead (#2.0.0) 

More instructions here: http://qmail.jms1.net/test-auth.shtml

Helpful article on SMTP-AUTH connections: http://www.fehcom.de/qmail/smtpauth.html

sysadmin_smtpauth.txt · Last modified: 2013/01/21 12:44 (external edit)