Check for rejected mail
Not commented on by: freebsd-hackers
This commit is contained in:
parent
6fb83a4d28
commit
7679712467
11
etc/periodic/daily/460.status-mail-rejects
Executable file
11
etc/periodic/daily/460.status-mail-rejects
Executable 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
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user