VectorLinux
December 19, 2014, 11:50:51 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: CLI mail stupid quest  (Read 1844 times)
cyberbillp
Member
*
Posts: 4


« on: February 01, 2010, 05:35:06 am »

Can't find anything with "search" so here goes.

My stupid question is: How do I send email via the command line in VL5.9? I've tried sendmail, mail and Mail, but none are installed, and furthermore I don't see them in gslapt. I found procmail which says it needs sendmail installed.

Isn't there a mail daemon installed somewhere? Or do I need to install a 3rd party one. I always prefer to use the official VL daemon if one is available, plus I don't want to install something and perhaps break my install just because I was unaware of an pre-existing program that I'm just not able to locate.

My usage is: I want to scrape a website with wget, run kindlegen on it and email it to my kindle once a week via cron. I'm up to the email part......


Logged
bigpaws
Vectorian
****
Posts: 1862


« Reply #1 on: February 01, 2010, 05:59:25 am »

This is not a stupid question. Try searching the package manager for
mstmp or esmtp.

http://msmtp.sourceforge.net/

This is what I use, it is clear and sendmail syntax
compatible.

HTH

Bigpaws
Logged
cyberbillp
Member
*
Posts: 4


« Reply #2 on: February 01, 2010, 07:33:13 am »

Excellent, thanks!
Logged
Pita
Vectorian
****
Posts: 1319


« Reply #3 on: February 01, 2010, 05:37:51 pm »

In gslapt look for mailx, sendmail and procmail. Install them and you can use
the "mail" command in a terminal to send mail with attachments etc. I use it a lot.
It's fast and easy and leaves no "residues". Cheesy

mail -a file address@server.com. The -a flag is for an attachment. When ready to send
terminate with a "." (dot w/o the quotes) and the mail will fly out. One can add
Cc:, Bcc: if one needs to. To: and Subject: is always given.
Logged
cyberbillp
Member
*
Posts: 4


« Reply #4 on: February 02, 2010, 04:40:35 pm »

Strangely I can't find ANY of the above programs except procmail with gslaspt.

Adding Slackware repositories gets me the packages, but I'd just as soon compile them from source before using Slack packages.
You'd think Vector would have a mail daemon in the repositories. *sigh*
Logged
newt
Vectorian
****
Posts: 1132



« Reply #5 on: February 02, 2010, 05:03:01 pm »

If you don't have the 'testing' repo enabled then you might want to enable it, reload the repo package lists, and then search slapt-get/gslapt again.  If you DO have testing enabled then compiling from source might be the best solution.

edit:
I just checked the 'extra' repo and found mailx, msmtp, and ssmtp.  You should be able to grab these via gslapt/slapt-get. Check which sources you have enabled and make sure you have 'extra' enabled, then refresh your package lists, and search again.
« Last Edit: February 02, 2010, 05:07:20 pm by newt » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!