Hello,
Appended below is a quickie patch to the dnsbl plugin that allows you to
specify what nameservers should be used when doing DNSBL lookups.
This is very useful to me; hopefully some other people might have a use
for it.
In our office we have a server set aside to handle all DNSBL lookups -- we
mirror as many of the lists as we can locally on that machine for fastest
lookup times. Even for lists we don't mirror, by concentrating lookups
from our 800+ servers in this one place, we get a much greater benefit from
query caching.
Anyway, I'm currently looking for places we might use qpsmtpd in place of
qmail, and was pleased at how quickly I was able to get the plugin to do
what I needed. :)
Regards,
Matt Riffle
pair Networks, Inc.
--
Index: dnsbl
===================================================================
RCS file: /cvs/public/qpsmtpd/plugins/dnsbl,v
retrieving revision 1.12
diff -r1.12 dnsbl
37a38,41
> if (my @ns = $self->qp->config('dnsbl_nameservers')) {
> $self->log(LOGDEBUG, "Setting nameservers to: @ns");
> $res->nameservers(@ns);
> }
226a231,238
> =item dnsbl_nameservers
>
> List of nameservers, one per line, that should be used to make the DNSBL
> lookups.
>
> This is useful for local mirroring of DNSBLs, as well as to take advantage of
> query caching among multiple servers running qpsmtpd.
>