-
Sending EMail from the Command Line with Ubuntu Server
Posted on August 25th, 2009 No commentsIn a previous post I wrote about the problems I had encountered while trying to configure my Ubuntu Server to send emails from the command line (actually from a script but it amounts to the same thing). I overcame the problem in the short term by using curl to send messages via Twitter but I really wanted to work out how to end emails instead. Well after a bit more research and some testing I have cracked it
What I didn’t understand was that I needed two components to be able to send an email in this way, a Mail Transfer Agent (MTA) and an email client. For my solution I have used Nullmailer as my MTA and Mutt as my Client.
Nullmailer is not a full blown MTA like Postfix but then I didn’t really need something that heavyweight for my purposes. Nullmailer is a ‘minimal mail relay’ – it doesn’t handle local mail delivery or download message from other servers, it just passes email from the local machine to a mail server for delivery.
Mutt is a small but powerful, text-based email client which can send email from the command line but also has a GUI (of sorts). I was only interested in the command line interface for this little project. Read the rest of this entry »


