Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
* First, open a terminal window and become '''root'''. Enter the following to install:
<blockquotepre>{{Code|yum install logwatch}}</blockquotepre::'''NOTE:''' <code>yum</code> (deprecated) has been replaced with <code>dnf</code> as the package manager for Fedora 23 and greater. 
* You can customize the settings by adding options to '''''/etc/logwatch/conf/logwatch.conf'''''. By default it sends the daily logwatch email to the local root mail box. To change it, add this line (change user@yourisp.com to desired email address):
<blockquotepre>{{Text|Output = mailMailTo <nowiki>=</nowiki> user@yourisp.com}}</blockquotepre>
* If you want the email in html, add this line:
<blockquote>{{Text|Output <nowikipre>Format =</nowiki> html}}</blockquotepre>
* To test, enter the command '''''logwatch''''' and go check your email.
<blockquotepre>{{Code|logwatch}}</blockquotepre>
* Ensure sendmail or postfix is running (rerun command and change '''''status''''' to '''''start''''' if not):
<blockquotepre>{{Code|service sendmail status}}</pre>
or
{{Code|<pre>service postfix status}}</blockquotepre>
'''Optional:'''
12,424

edits