Here are simple steps on how to send an email using telnet. This a great way to test your mail server configuration such as exim, sendmail or postfix without a need for a email client. First telnet to yor mail server:

$ telnet 25

Use HELO command to tell mail server from which domain you are coming from:


Now we need to state from which address this email will be sent. This is done with MAIL FROM: command:


Next step is to specify recipient with RCPT TO:


Now we ca star writing some subject and body. To do that we need to use DATA command. First type DATA followed by Subject: and body. Once done enter . to send email to be queued.

Subject: Sending an email using telnet


Here is my body? Do you like it?


Do not forget "." at the end of the message. To quit type


Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top