summaryrefslogtreecommitdiff
path: root/postfix/cron.weekly/00local-pflogsumm
diff options
context:
space:
mode:
Diffstat (limited to 'postfix/cron.weekly/00local-pflogsumm')
-rwxr-xr-xpostfix/cron.weekly/00local-pflogsumm10
1 files changed, 10 insertions, 0 deletions
diff --git a/postfix/cron.weekly/00local-pflogsumm b/postfix/cron.weekly/00local-pflogsumm
new file mode 100755
index 0000000..10206c2
--- /dev/null
+++ b/postfix/cron.weekly/00local-pflogsumm
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Debian pflogsumm weekly cron script
+#
+# This script analyses the logfile for statistics and problems.
+#
+
+if [ -x /usr/sbin/pflogsumm ]; then
+ for i in $(seq 8 -1 2); do zcat /var/log/mail.log.$i.gz; done | /usr/sbin/pflogsumm --problems_first
+fi