summaryrefslogtreecommitdiff
path: root/postfix/cron.weekly/00local-pflogsumm
blob: 10206c2ab564ebcd6648b17c28cbc428fb7507f9 (plain)
  1. #!/bin/sh
  2. #
  3. # Debian pflogsumm weekly cron script
  4. #
  5. # This script analyses the logfile for statistics and problems.
  6. #
  7. if [ -x /usr/sbin/pflogsumm ]; then
  8. for i in $(seq 8 -1 2); do zcat /var/log/mail.log.$i.gz; done | /usr/sbin/pflogsumm --problems_first
  9. fi