SMTP Auth test using TELNET¶
This is simple but it is very useful procedure to test email functionality.
you need following information to authenticate your self.
base64 encoded value for username and password.
You can generate it using following command.
perl -MMIME::Base64 -e "print encode_base64('username')"
perl -MMIME::Base64 -e "print encode_base64('password')"
look like below.
First connect to your server using telnet
Initialize communication Enter following line. will return like below Now initialize Login. which will return values like below.First enter your username and second your password. If you have successfully authenticated the server will return: "235 authenticated".
Enter MAIL FROM: [email protected]"
Enter RCPT TO: DestinationEmail
Enter DATA
Enter Subject: Test using telnet"
Enter
Enter This is just a test to see if I can SMTP auth from my PC
Enter "."
The server will return: "250 Message queued"
Enter "quit"
Testing complete