From 69030d4bee0eaac396d8744905edf7dc6695f798 Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 8 Oct 2012 19:09:11 +0200 Subject: Add pflogsumm cronjobs. --- postfix/cron.daily/00local-pflogsumm | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 postfix/cron.daily/00local-pflogsumm (limited to 'postfix/cron.daily/00local-pflogsumm') diff --git a/postfix/cron.daily/00local-pflogsumm b/postfix/cron.daily/00local-pflogsumm new file mode 100755 index 0000000..7eca532 --- /dev/null +++ b/postfix/cron.daily/00local-pflogsumm @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Debian pflogsumm daily cron script +# +# This script analyses the logfile for statistics and problems. +# + +if [ -x /usr/sbin/pflogsumm ]; then + (cat /var/log/mail.log.1 /var/log/mail.log) | /usr/sbin/pflogsumm -d yesterday --problems_first +fi -- cgit v1.2.3