diff options
| author | Brian Somers <brian@FreeBSD.org> | 1997-11-22 04:02:51 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1997-11-22 04:02:51 +0000 |
| commit | ac4c6ef8a99aa2ed44bc12acc1eb6426a0110b53 (patch) | |
| tree | da530c6890c8c0fcc7ce24344432ddcd3acf98eb | |
| parent | b6e82f33ef84ba5eedb0db2e24525e9d0f661b91 (diff) | |
Notes
| -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 000000000000..356a1a5e706d --- /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 e7019586445e..456faab10b2c 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> |
