我试图configurationEXIM使用Rspamd作为垃圾邮件filter。 我正在运行Exim 4.87版本,并使用apt-get从存储库安装了Rpsam,如此处所述。 然后我将Rspamd文档中的build议configuration添加到我的configuration文件中:
begin acl # configure Rspamd # Please note the variant parameter spamd_address = 127.0.0.1 11333 variant=rspamd # error occurs here acl_smtp_data = acl_check_spam acl_check_spam: # do not scan messages submitted from our own hosts accept hosts = +relay_from_hosts # do not scan messages from submission port accept condition = ${if eq{$interface_port}{587}} # skip scanning for authenticated users accept authenticated = * # add spam-score and spam-report header when told by rspamd warn spam = nobody:true condition = ${if eq{$spam_action}{add header}} add_header = X-Spam-Score: $spam_score ($spam_bar) add_header = X-Spam-Report: $spam_report # use greylisting available in rspamd v1.3+ defer message = Please try again later condition = ${if eq{$spam_action}{soft reject}} deny message = Message discarded as high-probability spam condition = ${if eq{$spam_action}{reject}} accept
当我尝试重新启动Exim时出现以下错误信息:
error in ACL: unknown ACL condition/modifier in "spamd_address = 127.0.0.1 11333 variant=rspamd"
其中指的是我上面发布的configuration代码的第四行: spamd_address = 127.0.0.1 11333 variant=rspamd 。 我在Exim官方文档中find了完全相同的行。 所以它应该工作。 在configurationExim使用Rspamd之前,有没有人遇到过这个问题?
我正在使用Ubuntu:
$ uname -a Linux calais 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
在ACL部分之外放置spamd_address = 127.0.0.1 11333 variant=rspamd指令。 一般来说,它应该放置在ACL,服务,路由器和传输被定义之前的configuration开始。