Check for rejected mail

Not commented on by: freebsd-hackers
This commit is contained in:
Brian Somers 1997-11-22 04:02:51 +00:00
parent b6e82f33ef
commit ac4c6ef8a9
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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>