hey all, here is a quickie little program i wrote to see exactly what
rblsmtp is doing for you, here is an example of the output:

#
RBL-Stats v1.0 by xs <[EMAIL PROTECTED]>

checking your logfile, this'll take a few.
Since Mar 3 16:51:40
RBL has blocked     2265 connections.
DUL has blocked     1219 connections.
DSSL has blocked    11008 connections.
ORBS has blocked   364248 connections.

For a total of   378740 connections blocked.
Great Hunt.
#

and here is the source:


#!/bin/sh
echo "RBL-Stats v1.0 by xs <[EMAIL PROTECTED]>"
echo ""
echo "checking your logfile, this'll take a few."
cat $1|grep rblsmtp > ~/.rbltmp.bak
echo "Since `head -1 ~/.rbltmp.bak|awk '{print $1" "$2" "$3}`"
echo "RBL has blocked `grep "com/cgi" ~/.rbltmp.bak|wc -l` connections."
echo "DUL has blocked `grep "com/dul" ~/.rbltmp.bak|wc -l` connections."
echo "DSSL has blocked `grep dssl ~/.rbltmp.bak|wc -l` connections."
echo "ORBS has blocked `grep orbs.org ~/.rbltmp.bak|wc -l` connections."
echo ""
echo "For a total of `grep rblsmtp ~/.rbltmp.bak|wc -l` connections
blocked."
echo "Great Hunt."
rm ~/.rbltmp.bak
#EOF


end 
-------------------------------------------------
Greg Albrecht                     Safari Internet
System Administrator          Fort Lauderdale, FL
[EMAIL PROTECTED]                      www.safari.net              
              +1[888|954]537-9550
-------------------------------------------------

Reply via email to