> From: "John Levine"
> RFC 5782 says that a live DNSxL does list 127.0.0.2 to show that it's
> alive, and does not list 127.0.0.1 to show that it's not wildcarded.
> We published that in 2010 but it was in draft form for quite a while
> before that. For IPv6 BLs, you list ::ffff:127.0.0.2 and don't list
> ::ffff:127.0.0.1. For name BLs, you list TEST and don't list INVALID.
> I have a script that runs once a week to test all
> the BLs I use for 127.0.0.2 and 127.0.0.1. It comments out any that
> fail and sends me a note. I think I've caught one or two abandoned
> ones from my list that way.
Not every DNSBL conforms to these rules. So:
#!/bin/sh
t()
{
/usr/bin/host $1.$l > /dev/null || echo $1.$l must be found
/usr/bin/host $2.$l > /dev/null && echo $2.$l must not be found
}
for l in list.dnswl.org swl.spamhaus.org dnsbl.sorbs.net cbl.abuseat.org
bl.mailspike.net truncate.gbudb.net multi.surbl.org; do
t 2.0.0.127 1.0.0.127
done
for l in hostkarma.junkemailfilter.com; do
t 2.0.0.127 255.0.0.127
done
for l in zz.countries.nerd.dk; do
t 119.20.247.64 1.0.0.127
done
for l in dbl.spamhaus.org; do
t TEST INVALID
done
_______________________________________________
mailop mailing list
[email protected]
https://chilli.nosignal.org/cgi-bin/mailman/listinfo/mailop