不断更新中:中文垃圾邮件过滤规则集Chinese_rules.cf

Chinese_rules.cf的使用方法:

下载Chinese_rules.cf,把该规则放在SpamAssassin存放规则的目录(一般在/usr/share/spamassassin或/usr/local/etc/mail/spamassassin)。通过wget下载的命令如下:

#wget -N -P /usr/share/spamassassin www.itkylin.com/download/Chinese_rules.cf
#wget -N -P /usr/local/etc/mail/spamassassin www.itkylin.com/download/Chinese_rules.cf

每次更新Chinese_rules.cf都需要重启加载SpamAssassin规则的程序。如果你用spamd则通常重启的方法是:

#ps -ax |grep spamd

查看spamd进程的PID,然后

#kill -HUP PID

如果你用mailscanner则要重起mailscanner。
则命令如下:
#/usr/local/etc/rc.d/mailscanner restart

itkylin.com根据每天处理的垃圾邮件为样本不定期更新规则集。只需把上述下载命令以及重起mailscanner的命令放在crontab中定时执行即可完成自动更新。假如你想一个星期更新一次,那么在root的crontab中应该添加一行:

0 0 * * 1 wget -N -P wget -N -P /usr/local/etc/mail/spamassassin www.itkylin.com/download/Chinese_rules.cf;
/usr/local/etc/rc.d/mailscanner restart