Help - Search - Members - Calendar
Full Version: LogWatch and Cron.Daily email address
The Planet Forums > Operating Systems > Red Hat Linux
autoquartz
How do I change the e-mail address where LogWatch and Cron.Daily send their reports to? Thanks.
aerostar
/etc/log.d/logwatch.conf
autoquartz
Thanks aerostar, do you know where to change the Cron.Daily?
alex042
cron.daily is a directory. There should be a logwatch cron in that folder to run logwatch nightly to email the report.
autoquartz
alex042,

I meant where can I change the e-mail address to which the daily cron report is being sent. Thanks.
alex042
Well, for logwatch, you can just edit the logwatch.conf file. There's a line in there to tell logwatch where to send it's email.
Paul
QUOTE (autoquartz)
I meant where can I change the e-mail address to which the daily cron report is being sent. Thanks.

CODE
pico /etc/crontab

Change  

MAILTO=root

to

MAILTO=yourem@il.address

Save and exit


I don't think you need to retstart the cron deamon.

That will change the email address for cron.daily/hourly/weekly/monthly and any others you have in there.

Or

If you only want to change the output email from cron.daily (and not the others) add
CODE
| mail -s "Subject of mail" you@mail.tld

to the end of the cron.daily line
(I think that should work - can't login to check at the moment)

Use at your own risk.

or

If you use cPanel I'm pretty sure there is an option in WHM to send root's email to elsewhere.
autoquartz
I stop getting e-mails from Cron Daemon on cron.daily since a couple weeks ago. I still get chkrootkitscan report though. Anyone know where to starting looking? icon_sad.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.