On Mon, 2013-04-29 at 08:06 -0400, Tanstaafl wrote:

> It does use the mail command - the command in the cron job is:
> 
> EMAIL_CMD="|mail -s \"${EMAIL_SUBJECT}\" ${EMAIL_RECIPIENT} -- -f 
> ${EMAIL_SENDER}"
> 
> And this is what is appended at the bottom of the email I get:
> 
> "mail: Cannot give -f and people to send to"
> 
The man page I have for 'mail' says for '-f':

 -f [file]
   Read  in the contents of the user's mbox (or the specified file)
   for processing; when mailx is quit, it writes undeleted messages
   back  to this file.  The string file is handled as described for
   the folder command below.

So it doesn't look like '-f' is what you want.
However, there is a section called 'Sending mail from scripts' much
further down, and that gives an example of setting the 'From:' header.
I assume you can, likewise, put the 'from' command in your /etc/mail.rc
if necessary.




John.

-- 
John Horne, Plymouth University, UK
Tel: +44 (0)1752 587287    Fax: +44 (0)1752 587001


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Rkhunter-users mailing list
Rkhunter-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

Reply via email to