尽管spamassassin -D
输出中有此内容,但插件似乎并未加载:
Feb 1 21:05:53.653 [7880] dbg: config: read file /usr/share/spamassassin/25_dcc.cf
我明白了:
Feb 1 21:05:54.230 [7880] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": auto_whitelist_factor 0.05
Feb 1 21:05:54.232 [7880] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_path /usr/local/bin/dccproc
Feb 1 21:05:54.232 [7880] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": use_dcc 1
Feb 1 21:05:54.232 [7880] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_body_max 2
Feb 1 21:05:54.232 [7880] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_fuz1_max 2
Feb 1 21:05:54.232 [7880] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_fuz2_max 999999
Feb 1 21:05:54.232 [7880] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": dcc_home /var/dcc
Debian 9 x64,stock SA,DCC 插件以不同的方式安装(从 CPAN、从 DCC 源分发等)。
我该如何解决?
答案1
取消loadplugin Mail::SpamAssassin::Plugin::DCC
注释/etc/spamassassin/v310.pre
根据 DCC建议我们需要在防火墙上打开 6277 UDP 端口
sudo ufw allow 6277/udp
如何安装好文章
下载
获取最新版本链接https://www.dcc-servers.net/src/dcc/
sudo -i
cd /tmp
wget 'https://www.dcc-servers.net/src/dcc/dcc.tar.Z'
tar xvzf dcc.tar.Z
cd dcc-1.3.163/ ## latest version on 2018-12-30
./configure && make && make install
DCC 主文件夹是/var/dcc
插入 Spamassassin 的 local.cf
use_dcc 1
dcc_timeout 8
dcc_home /var/dcc/
dcc_path /usr/local/bin/dccproc
add_header all DCC _DCCB_: _DCCR_