Send, Receive Email Using Telnet Command – Troubleshoot Email Accounts with Telnet Commands

By | September 3, 2009

Telnet

An Internet communications protocol that enables a computer to function as a terminal working from a remote computer.

Telnet was developed in 1969 beginning with RFC 15, extended in RFC 854, and standardized as Internet Engineering Task Force (IETF) Internet Standard STD 8, one of the first Internet standards.

Advantage of telnet

1. Easy of use.

2. Allows users to log on to a remote system and run programs on that system.

3. Email account management, send and receive emails.

4. Easy to check ports on servers. (eg: to check email server smtp, telnet servername 25)

Disadvantage of telnet

1. Actions available are very limited.

2. Files cannot be saved.

3. Does not support encryption.

4. Login information and data is send by clear text, unencrypted format.

Telnet on Windows

On windows, we can check send and receive emails using the same commands mentioned here.

To open the command prompt,

Click on Start -> Run -> type ‘cmd’ and Enter.

Sending and Receive Emails Using Telnet

Using telnet commands we are able to troubleshoot the email account with out login into the control panels.

Telnet commands for Receiving emails pop3,

# telnet mail.talk2melbin.com 110 (where mail.talk2melbin is the email server and 110

pop3 service port number)

# user melbin@talk2melbin.com (Specify the user name for login)

# pass **** (Enter the correct Password)

# list (Command list all the emails received on the account)

List command will also show us the id number of your messages (erg. 1 or 2 etc.)

To view the contents of received email type RETR + the id number of the message (e.g RETR 1).

To delete a message use DELE + the id number of the message (e.g DELE 1).

To leave your mailbox and close the connection use QUIT

Telnet commands for Sending emails smtp,

# mail from: melbin@talk2melbin.com

250 ok

# rcpt to:melbin@talk2melbin.com (Both domain names for send and receive emails should be

same or the both domains belong to same server)

250 ok

# data

354 go ahead

Test Email

# .

Telnet commands for checking Open Relay on servers

Enabling Open relay increase the spamming/security risk on the servers. We can check the status of server via telnet commands,

# mail from: melbin@talk2melbin.com

250 wok

# rcpt to:****@gmail.com (Domain name used for sending and receiving emails should be

different)

Relay access denied

Which means the servers is not set for open relay.

Cheers!

Melbin Mathew

www.talk2melbin.com

Melbin Mathew

I am Melbin Mathew, Systems Engineer from Kerala, India. I live with my parents, daughter and my wonderful wife. I graduated in 2004 with a bachelor’s degree in Electronics and Hardware from Mahatma Gandhi University, Kottayam and completed certification in MCITP, RHCE, CCNA, VCP ...Read More
Category: Linux

About Melbin Mathew

I am Melbin Mathew, Systems Engineer from Kerala, India. I live with my parents, daughter and my wonderful wife. I graduated in 2004 with a bachelor’s degree in Electronics and Hardware from Mahatma Gandhi University, Kottayam and completed certification in MCITP, RHCE, CCNA, VCP ...Read More

  • Anish Panthalani

    Hi Melbin,

    Very interesting Information….We are expecting more like this from ur side.

    Thanks & Regards,

    Anish Panthalani