有人向我建议,现在可以为 SpamAssassin 设置自定义名称服务器,供其在进行 RBL/BL 检查时使用。目前我收到此错误:
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: mcusercontent.com]
0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to
DNSWL was blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[205.201.133.30 listed in list.dnswl.org]
不过我似乎找不到任何关于此的文档。你如何设置它?我使用的是 SA 3.4.2
在我的旧服务器上,我只需编辑 resolv.conf 并关闭我的 Linode 上的服务器“自动更新网络”选项。似乎在更高版本的系统上不再可能了,所以我正在尝试寻找一种解决方法
答案1
好的,我找到了解决方案
https://cwiki.apache.org/confluence/display/SPAMASSASSIN/CachingNameserver
SpamAssassin local.cf
dns_available yes
/etc/resolv.conf
search example.com
nameserver 127.0.0.1
NOTE: If something like NetworkManager is reverting your changes in /etc/resolv.conf or you don't have permission to update the /etc/resolv.conf, you may specify a DNS server in the local.cf:
dns_server 127.0.0.1
所以我做了:
- 我已经安装了“unbound”(apt-get install unbound)
更新了 SA本地文件要包含的文件:
dns_server 127.0.0.1
这现在迫使 SA 使用我的自定义名称服务器(与 resolv.conf 相比,它们是全局 DNS,因此在几秒钟内就超出了免费使用限制)