Category Archives: Command Line

In the beginning there was the command line

Send an email using the command line


Filed Under : Command Line

Ever get an email failure without a good error message and want to see what’s really going on?  Here’s how to send an email using nothing but telnet.  You’ll see exactly where the process breaks down and point you towards the real problem.

telnet 25


mail From: [email protected]

rcpt To: [email protected]


From: [email protected]

To: [email protected]

Subject: Testing


This is just a test message :-)




That’s it.  If all goes well you’ll see “250 OK” with some variables afterwards.  This means the server accepted the email and should deliver it shortly.  If you get an error then the number code will point you in the right direction.

For more information on SMTP error codes enjoy the lovely RFC

A better tail -f


Filed Under : Command Line

If you’ve ever wanted to use a more powerfull editor while viewing live log files then less is the tool to use.  Instead of typing in the following:

> tail -f /var/log/logfile.log

Try this

> less /var/log/logfile.log


Once inside the less program a capital F will take you to the bottom and wait for data