Changes

From Amahi Wiki
Jump to: navigation, search
m
no edit summary
{{Code|yum install logwatch}}
* Settings are stored in You can customize the settings by adding options to '''''/usr/shareetc/logwatch/default.conf/logwatch.conf''''' and NO changes to make it work. However, by default it sends the daily logwatch email to the local root mail folder. If you want to forward these emails to another (including external) account, see [http://wiki.amahi.org/index.php/Forward_System_Emails Forward System Emails]
* If you want to send the logwatch emails to an address different from other root emails, edit the default.conf file with add this line:{{Text|MailTo <nowiki>=</nowiki> (your favorite editor and make the following change:email address)}} ** To test, enter the command ''''MailTo = root'logwatch'' (line 35) to '''MailTo = (and go check your email address)'''. If you want the email in html, add this line:{{Text|Output <nowiki>=</nowiki> html}}
* Ensure sendmail is running ('''''service sendmail status''''') or it won't work.
 
* To test, enter the command '''''logwatch''''' and go check your email. If you want the email in html, add the switch '''''--output html'''''.
 
'''Optional:'''
12,424

edits