best/easiest commandline email program for mass-email

Alex Janssen alex at
Mon Feb 1 21:49:04 UTC 2010

Hal Burgiss wrote:
> Well,  the mail command does it as a one liner, but the custom
> sendmail script gives more flexibility, especially with things like
> headers.
> It will use the underlying mail system, whatever that is. I prefer
> installing postfix myself. Then configure postfix (or sendmail, etc)
> to use your isp's system. In postfix, that is called a 'relayhost'. I
> use my isp's smtp server for relaying, and all mail sent from my local
> system automatically goes through that. No matter what script or
> command line tool you use, you most likely will have to configure the
> local mail system to control such things. Once that's installed, you
> can easily check the server's logs to see if the mail is going out,
> where its going, if its accepted, etc.
> I would suggest for bulk mail to set the appropriate headers, and send
> them in limited batches so it doesn't raise a red flag. Like maybe 20
> at a time.
I am no expert at configuring sendmail, postfix or any email system.  I 
installed mailx because it looked pretty easy and I can send html via -a 
to add the appropriate "Content" header.  It appears to have installed 
postfix.  Is there a quick way to configure postfix to login to my ISP's 
SMTP server with user authentication for sending email?  I do not want 
to download email, just send.

The following command:
mail -a "Content-type: text/html;" -s "HTML test 3" me at 

yields the following error:
postdrop: warning: unable to look up public/pickup: No such file or

Thanks for your help,

 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein (275)

More information about the ubuntu-users mailing list