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

Useful url

A sample output ..

[zimbra@zimbra01 ~]$ /usr/local/bin/dnsblcount /var/log/zimbra.log 233 112 4
Total DNSBL rejections: 349

No comments:

Post a Comment