Test and debug AUTH PLAIN authentication

categories:

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

For test@domain.be, you’d type this :

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

Where “test@domain.be” 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 mx.domain.be 25 Trying 10.0.0.1... Connected to mx.domain.be. Escape character is '^]'. 220 mx.domain.be ESMTP EHLO mx.domain.be 250-mx.domain.be 250-PIPELINING 250-SIZE 10971520 250-ETRN 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250 8BITMIME AUTH PLAIN AHRlc3RAZG9tYWluLmJlAHBhc3N3b3Jk 235 Authentication successful




Thanks for reading this post!


Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!