Hello I have a Debian etch perfect setup with: postfix 2.3.8-2+etch1 pflogsumm 1.1.0-3 ISPConfig v2.2.18 My problem is the pflogsumm send me incomplete results. It sends me reports for very few emails, as you can see: Grand Totals ------------ messages 3 received 2 delivered 0 forwarded 0 deferred 0 bounced 16 rejected (88%) 0 reject warnings 0 held 0 discarded (0%) But the servers processes 20.000 emails/day I have this script in /etc/cron.daily #!/bin/sh if [ -x /usr/sbin/pflogsumm ]; then /usr/sbin/pflogsumm -d yesterday --problems_first /var/log/mail.log fi I also tryed to rename it to 000pflogsumm instead of pflogsumm so it starts before 00logwatch This is my etc/crontab # /etc/crontab: system-wide crontab SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) # Also this is my crontab -l mega:/etc/cron.daily# crontab -l 30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null 59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null 59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null 59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null 0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null 0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null 15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null 40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null 05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null # ls -la /etc/logrotate.d/ drwxr-xr-x 2 root root 4096 2008-09-02 10:51 . drwxr-xr-x 74 root root 4096 2008-09-02 12:42 .. -rw-r--r-- 1 root root 137 2006-01-15 22:24 acpid -rw-r--r-- 1 root root 240 2007-03-27 15:21 apache2 -rw-r--r-- 1 root root 79 2006-10-27 06:49 aptitude -rw-r--r-- 1 root root 111 2007-01-02 00:02 dpkg -rw-r--r-- 1 root root 869 2007-03-18 22:05 mysql-server Any hints will be appreciated! Best regards
I think the problem might be that ISPConfig rotates the mail log at 23:59h, so maybe there's not much in the new mail log when the pflogsumm script runs.