Related Articles

Telnet send mai with authentication

Print PDF
[root@mail ~]# telnet mail smtp

 

Trying 192.168.0.4...
Connected to mail.test.local (192.168.0.100)
 Escape character is '^]'.
helo This e-mail address is being protected from spambots. You need JavaScript enabled to view it

 

mail from: johndoe
250 2.1.0 Ok

rcpt to: test@domain.local
554 5.7.1
 <test@domain.local>: Relay access denied

 

It works, now to check if we can send it after authenticating.

 

auth plain 
auth login ADEyMwAxMjM=
## the ADEyMwAxMjM= 
is base64 enc
####### GLICKHERE to generate you code for username and password
5 2.0.0 Authentication successful
 rcpt to: test@domain.local
250 2.1.5 Ok
quit
221 2.0.0
Bye
Connection closed by foreign host.

 

 

The gibberish text after AUTH PLAIN is the base64 encoded value of the user name johndoe and password password. You can generate your own base64 text using the form below.

 

 

Related Articles+