Spamassassin:绕过/etc/resolv.conf查询DNSBL的DNS?


有没有办法让spamassassin绕过我的Linux系统的DNS服务器来查询DNSBLs?

背景信息
当我的服务器收到电子邮件时,通过spamassassin进行检查。 其中一项检查将在DNS黑名单中查找涉及的邮件服务器。 不幸的是,我的提供商的DNS不允许再查询这些BL。 这是通过spamassassin的标题信息URIBL_BLOCKED在我收到的所有电子邮件中显示的。 我也手动testing了这个:

root@net:# dig 2.0.0.127.multi.uribl.com txt +short "127.0.0.1 -> Query Refused. See http://uribl.com/refused.shtml for more information [Your DNS IP: 123.123.123.123]" 

123.123.123.123在我的/etc/resolv.conf被configuration为dns。)

当我手动查询他们的域名服务器之一(请参阅@ cc.uribl.com),而不使用我的提供商的recursor,我得到一个答案:

 root@net:# dig 2.0.0.127.multi.uribl.com txt @cc.uribl.com. +short permanent testpoint 

(请注意,这是BL应该给出这个结果的一个testing)

概要
那么有什么办法可以让spamassassin不使用系统默认的dns的dnsbl查询,而不是在这个系统上安装dns recursor?

UPDATE
好的,实际上安装本地dns-recursor没有问题。 它重量轻,易于安装,现在我不再有BL的问题了。

Spamassassin ( Mail :: SpamAssassin :: DnsResolver )使用Net :: DNS :: Resolver perl模块。
它应该允许您通过RES_NAMESERVERS环境variables更改spamassassin使用的名称服务器。