File README.SUSE of Package sendmailanalyzer
1. Start sendmailanalyzer daemon with: rcsendmailanalyzer start
or /sbin/service sendmailanalyzer start
2. Enable the webinterface by running "a2enflag SAREPORT" and starting
your Apache with: rcapache2 start
3. Restart and ensure that Apache is running.
4. Browse to http://localhost/sareport/ to ensure that things are working
properly.
5. If necessary, give additional hosts access to the webinterface by adding
them to /etc/apache2/conf.d/sendmailanalyzer.conf.
6. Setup a cronjob to run sa_cache and restart sendmailanalyzer daemon after
maillog logrotate. Please adapt the file /etc/logrotate.d/syslog and add:
/usr/sbin/sa_cache -a > /dev/null 2>&1 || true
/etc/init.d/sendmailanalyzer try-restart >/dev/null 2>&1 || true
So maybe your file /etc/logrotate.d/syslog will look like this:
/var/log/mail /var/log/mail.info /var/log/mail.warn /var/log/mail.err {
compress
dateext
maxage 365
rotate 99
missingok
notifempty
size +4096k
create 640 root root
sharedscripts
postrotate
/usr/sbin/sa_cache -a > /dev/null 2>&1 || true
/etc/init.d/syslog reload > /dev/null
/etc/init.d/sendmailanalyzer try-restart >/dev/null 2>&1 || true
endscript
}