Saturday, August 6, 2011

dnsblcount / a perl script to check rbl rejects

Dnsblcount scans your maillog to list the number of rejections by RBLs in a well organised manner. The RBL rejections specifies 'reject_rbl_client' which results in log entries with a keyword "blocked using". The script looks for it and provides a numbered result.

Place the file in /usr/local/bin. Chmod the file as executable (chmod +x /usr/local/bin/dnsblcount)

View and download dnslblcount script at http://www.joreybump.com/dnsblcount/dnsblcount

Useful url http://wiki.zimbra.co/wiki/Configuring_and_Monitoring_Postfix_DNSBL

A sample output ..

[zimbra@zimbra01 ~]$ /usr/local/bin/dnsblcount /var/log/zimbra.log
bl.spamcop.net 233
dnsbl.sorbs.net 112
sbl.spamhaus.org 4
=================
Total DNSBL rejections: 349
 

No comments:

Post a Comment