Skip to content

date: 2006-12-15 21:00:37+00:00

Test and debug AUTH PLAIN authentication

categories: - Howto - Linux - Postfix - Security

This command will give you the string that should be passed at AUTH PLAIN

For, you'd type this :

perl -MMIME::Base64 -e 'print encode_base64("00test@domain.be00password")'

Where "" is your username and "password" is.. your password Your username and password should start with the string "00"

The output is : AHRlc3RAZG9tYWluLmJlAHBhc3N3b3Jk

Now, you can test the authentication..

user@host:~$ telnet 25 Trying Connected to Escape character is '^]'. 220 ESMTP EHLO 250-PIPELINING 250-SIZE 10971520 250-ETRN 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250 8BITMIME AUTH PLAIN AHRlc3RAZG9tYWluLmJlAHBhc3N3b3Jk 235 Authentication successful