Manual SMTP Auth test for Postfix

 

You need to know the base64-encoded version of the userid and password to test your SMTP auth manually. It is faster than configuring  a mail client. Actually this test should work on any smtp server support AUTH PLAIN.  I used postfix here.

The following perl command will generate base64-encoded AUTH parameter for your username ismail@domain.com and password mypassword  (Don’t forget to escape @ with \)

# perl -MMIME::Base64 -e ‘print encode_base64(“\000ismail\@domain.com\000mypassword”)’
AGlzbWFpbEBkb21haW4uY29tAG15cGFzc3dvcmQ=

# telnet postfixserver 25
Trying 188.166.X.X…
Connected to mail.domain.com.
Escape character is ‘^]’.
220 mail.domain.com ESMTP Postfix
ehlo test
250-mail.domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH PLAIN AGlzbWFpbEBkb21haW4uY29tAG15cGFzc3dvcmQ=
235 2.7.0 Authentication successful

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Advertisements
Manual SMTP Auth test for Postfix

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s