diff options
author | brian <brian@FreeBSD.org> | 1997-11-22 04:02:51 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-22 04:02:51 +0000 |
commit | 9475f7b51ac8cf64dbd67c1b56265c47e9d569de (patch) | |
tree | 9f87a24306ae21b6d21c9af72212098e266d6e6b /etc/periodic | |
parent | a7f001c816c9390acda1c72f889fd110f8d75563 (diff) | |
download | FreeBSD-src-9475f7b51ac8cf64dbd67c1b56265c47e9d569de.zip FreeBSD-src-9475f7b51ac8cf64dbd67c1b56265c47e9d569de.tar.gz |
Check for rejected mail
Not commented on by: freebsd-hackers
Diffstat (limited to 'etc/periodic')
-rwxr-xr-x | etc/periodic/daily/460.status-mail-rejects | 11 | ||||
-rw-r--r-- | etc/periodic/daily/Makefile | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/etc/periodic/daily/460.status-mail-rejects b/etc/periodic/daily/460.status-mail-rejects new file mode 100755 index 0000000..356a1a5 --- /dev/null +++ b/etc/periodic/daily/460.status-mail-rejects @@ -0,0 +1,11 @@ +#!/bin/sh +# +# $Id$ +# +if [ -d /etc/mail -a -f /var/log/maillog ]; then + echo + echo Checking for rejected mail: + + start=`date -v-1d '+%b %d' | sed 's/0\(.\)$/ \1/'` + grep "^$start.*reject=" /var/log/maillog +fi diff --git a/etc/periodic/daily/Makefile b/etc/periodic/daily/Makefile index e701958..456faab 100644 --- a/etc/periodic/daily/Makefile +++ b/etc/periodic/daily/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.1 1997/08/12 18:23:26 pst Exp $ +# $Id: Makefile,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $ BIN= 100.clean-disks \ 110.clean-tmps \ @@ -19,6 +19,7 @@ BIN= 100.clean-disks \ 430.status-rwho \ 440.status-mailq \ 450.status-security \ + 460.status-mail-rejects \ 999.local .include <bsd.prog.mk> |