VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: CLI mail stupid quest  (Read 2033 times)

cyberbillp

  • Member
  • *
  • Posts: 4
CLI mail stupid quest
« 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: 1871
Re: CLI mail stupid quest
« 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
Re: CLI mail stupid quest
« Reply #2 on: February 01, 2010, 07:33:13 am »

Excellent, thanks!
Logged

Pita

  • Vectorian
  • ****
  • Posts: 1338
Re: CLI mail stupid quest
« 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". :D

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
Re: CLI mail stupid quest
« 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
Re: CLI mail stupid quest
« 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