So, I am running Zimbra on Ubuntu server.
So, it appears that the logs that contain the DNS checking are located in /var/log/mail.log
So, I added the following to my /etc/logrotate.d/zimbra file:
Code:
/var/log/mail.log {
compress
dateext
maxage 365
rotate 99
missingok
prerotate
/local/dnsblcount.pl /var/log/mail.log | /opt/zimbra/postfix/sbin/sendmail <MYADDRESS>
endscript
notifempty
size +4096k
create 640 root root
sharedscripts
postrotate
/etc/init.d/syslog reload
endscript
} But I don't believe it is really being called.
Any idea what I am doing wrong? I thought the wiki mentioned that the pre-rotate should be in the zimbra.log, but I noticed on my configuration the messages are actually going to mail.og.