3
回答
spamassassin /usr/share/spamassassin/下的规则怎样才能确定生效?

@迪克2012 你好,想跟你请教个问题:        

我用的amavisd-new调用SpamAssassin来进行垃圾邮件检查,可以确定的是Default的规则是生效的,如下有调用相应的规则:

X-Virus-Scanned: amavisd-new at mailadmin.com.cn
X-Spam-Flag: YES
X-Spam-Score: 7.665
X-Spam-Level: *******
X-Spam-Status: Yes, score=7.665 tagged_above=2 required=6.2
tests=[BAYES_40=-0.185, DNS_FROM_AHBL_RHSBL=0.692,
FH_HELO_ALMOST_IP=3.565, HELO_DYNAMIC_SPLIT_IP=3.493, RDNS_NONE=0.1]
autolearn=no

我在目录下添加了yishine.cf,如下:

header Yishine_SUBJECT_2        Subject =~ /0009/
describe Yishine_SUBJECT_2      Subject contains "0009"
score Yishine_SUBJECT_2 1100.2345

header Yishine_SUBJECT_3        Subject =~ /8008/
describe Yishine_SUBJECT_3      Subject contains "8008"
score Yishine_SUBJECT_3 1100.2345

body Yishine_BODY_1        /778899/
describe Yishine_BODY_1      Body contains "778899"
score Yishine_BODY_1 1100.2345

body Yishine_BODY_2        /abc/
describe Yishine_BODY_2      Body contains "abc"
score Yishine_BODY_2 2200.2345
发送含上述关键字的邮件的时候,发现完全没有起作用,我有重启amavisd,spamassassin,postfix等相关服务,我在想会不会是需要重新加载规则,添加了自定义的.CF是需要再做什么操作吗?还是说需要做什么操作来重新加载规则?

举报
yishine
发帖于3年前 3回/722阅
顶部