Ubuntu
Rspamd 的 EXIM 配置中存在未知 ACL 條件/修飾符
我正在嘗試將 EXIM 配置為使用 Rspamd 作為垃圾郵件過濾器。我正在執行 Exim 4.87 版,並使用此處
apt-get
解釋的方法從儲存庫安裝 Rpsam 。然後我將Rspamd 文件中的建議配置添加到我的配置文件中: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"
這是指我上面發布的配置程式碼的第 4 行:
spamd_address = 127.0.0.1 11333 variant=rspamd
. 我在官方 Exim 文件中找到了完全相同的行。所以它應該工作。之前有人在配置 Exim 以使用 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
將
spamd_address = 127.0.0.1 11333 variant=rspamd
指令放在 ACL 部分之外。一般來說,它應該放在配置的開頭,然後再定義 ACL、服務、路由器和傳輸。