On Mon, Apr 29, 2013 at 11:20:46AM +0100, John Horne wrote: > On Fri, 2013-04-26 at 18:02 -0700, Robert Holtzman wrote: > > > > > /etc/cron.daily looks like this (in part): > > > > case "$CRON_DAILY_RUN" in > > [Yy]*) > > OUTFILE=`mktemp` || exit 1 > > /usr/bin/nice -n $NICE $RKHUNTER --cronjob > > --report-warnings-only --appendlog > $OUTFILE > > if [ -s "$OUTFILE" ]; then > > ( > > echo "Subject: [rkhunter] $(hostname -f) - Daily report" > > echo "To: $REPORT_EMAIL" > > echo "" > > cat $OUTFILE > > # ) | /usr/sbin/sendmail $REPORT_EMAIL > > ) | /usr/bin/msmtp $REPORT_EMAIL > > fi > > rm -f $OUTFILE > > ;; > > *) > > exit 0 > > ;; > > esac > > > > which looks right but C (I presume that's what it is) isn't my strong > > point.i > > > This is just shell script.
Shows you what *I* know :-) > The cron job captures any output from RKH and then emails that using > msmtp. So I would leave the RKH setting MAIL_CMD as "", and let the cron > job handle the email. That's the impression I had > I don't know about 'msmtp', but I assume some log file in /var/log > (possibly /var/log/maillog') should contain any errors from the msmtp > command. Also try looking in /var/log/cron. less .msmtp.log | grep rkhunter showed only posts to the list. -- Bob Holtzman If you think you're getting free lunch, check the price of the beer. Key ID: 8D549279
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________ Rkhunter-users mailing list Rkhunter-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rkhunter-users