Re: [AMaViS-user] RBL Monitoring.

2007-06-27 Thread mouss
Azfar Hashmi wrote: thanks guys now where do I get long list of rbl servers to add those in script. Prefer quality over quantity. but if you insist on quantity, take a look at the lists on dnsstuff site or google for check rbl and on the sites that you find, do a lookup of an IP and you'll

[AMaViS-user] RBL Monitoring.

2007-06-26 Thread Azfar Hashmi
Is there any way to monitor my ips in RBLs. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.

Re: [AMaViS-user] RBL Monitoring.

2007-06-26 Thread Xueron Nee
Hi Azfar Hashmi, Here is a simple perl script to do this :) #!/usr/bin/perl -w use strict; use Net::RBLClient; die Usage: $0 file or ip.add.re.ss ...\n unless scalar(@ARGV); my @target = (); foreach my $ip_list (@ARGV) { if ($ip_list =~ /$Net::RBLClient::ip_pat/o and not -f $ip_list) {

Re: [AMaViS-user] RBL Monitoring.

2007-06-26 Thread mouss
Xueron Nee wrote: Hi Azfar Hashmi, Here is a simple perl script to do this :) #!/usr/bin/perl -w [snip] a less sofisticated shell version: #!/bin/sh ip_list=`grep -v ^# /path/to/ips` rbl_zones=`grep -v ^# /path/to/rbls` check_ip() { ip=$1 zone=$2 rev_ip=`echo $ip | awk