Logwatch Installation

Home » Computer Articles » Linux » Logwatch Installation
May 23, 2008 Linux No Comments

Sudo onto Machine

Remove existing Logwatch: rpm -e logwatch

Get latest rpm version of Logwatch from: Logwatch.org, using wget

Install the rpm -ivh newlogwatch

Customize Logwatch On REDHAT - replace config file (/etc/logwatch/conf/logwatch.conf) with the logwatch.conf from the customlogwatch folder or copy info below.

Edit logwatch.conf and add info below

MailTo = user@YourServerYourInternetDomain
Range = Yesterday
Detail = 10
## sendmail-largeboxes causes spool error if on
Service = "-sendmail-largeboxes"

Edit this file vi /usr/share/logwatch/default.conf/logwatch.conf and put Print = No

Check MX record

If the machine is using zephyr as it's DNS server then the mail relaying will not work.

Sendmail:
Modify /etc/mail/sendmail.cf Change the smarthost line

DS should become DSYourServerYourInternetDomainRestart Sendmail

Postfix:
Modify /etc/postfix/tranport Add a new line

YourServerYourInternetDomainsmtp:YourServerYourInternetDomain

Type postmap /etc/postfix/transport
Restart Postfix

Test logwatch

Restart Sendmail

Postfix:
Modify /etc/postfix/tranport Add a new line

YourInternetDomain smtp:YourServerYourInternetDomain

Type postmap /etc/postfix/transport
Restart Postfix

Test logwatch

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.