Count hosts and sort by score.

This commit is contained in:
Wolfram Schneider 1998-02-05 15:38:17 +00:00
parent 011e8ccf1f
commit a4f897aa96
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33120

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $Id: 460.status-mail-rejects,v 1.4 1998/01/26 02:26:29 brian Exp $
# $Id: 460.status-mail-rejects,v 1.5 1998/02/05 15:33:54 wosch Exp $
#
if [ -d /etc/mail -a -f /var/log/maillog ]; then
@ -12,5 +12,5 @@ if [ -d /etc/mail -a -f /var/log/maillog ]; then
perl -ne "print \"\$1\n\"
if (/^$start.*ruleset=check_mail, arg1=<.*@([^>]*)>.*reject=/o ||
/^$start.*ruleset=check_relay, arg1=([^, ]*), .*reject=/o)" |
sort -u
sort | uniq -c | sort -nr
fi