On 2013-04-29 6:33 AM, John Horne <[email protected]> wrote:
> On Sun, 2013-04-28 at 11:05 -0400, Tanstaafl wrote:
>> This is driving me crazy...
>>
>> I'm setting up a new system from scratch, and installed msmtp
>> temporarily for sending emails, and everything is working fine except
>> for rkhunter.
>>
>> I get the emails, but the 'From' is totally blank. No matter what I set
>> or where, I can't get anything to show in the from header.
>>
>> If I directly edit the rkhunter cron job and add a sender (-f
>> [email protected]), then nothing gets mailed, no errors in the logs.
>>
> So this isn't an RKH problem but an msmtp one.
>
> Why use msmtp instead of the basic 'mail' command?
msmtp is a very basic mail program that can do starttls. It is meant to
be used when installing postfix would be considered overkill.
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"
Other cron jobs that send mail show the sender, so I know it is capable
of doing so...
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/rkhunter-users