Automatic sysLogs Report To Email

install packages:

# yum install ssmtp logwatch

Edit /usr/share/logwatch/default.conf/logwatch:

MailTo = androus@gawab.com
Range = Yesterday
Detail = 10
Service = xxx
mailer = /usr/sbin/ssmtp -t

The available  services are on /usr/share/logwatch/scripts/services

to config ssmtp you can check

Mail Forwarder Post

then:

# logwatch

and check your e-mail!

Advertisements