说明:
Extmail-1.0.9正式加入垃圾邮件举报功能,主要基于xueron的补丁包,并进行了一定的调整,使该功能可以兼容DSPAM及Spamassassin两种内容过滤软件的训练。
Extmail-1.1.1加入(stvictor)提供的spamassassin举报功能,感谢!
shell
shell
主要变动的内容见下:其它变动根据实际情况修改
SYS_SPAM_REPORT_ON = 1 SYS_SPAM_REPORT_TYPE = dspam
自动将垃圾信丢垃圾箱
shell
内容如下:
# Decoder for high quality key word filtering
# Author: hzqbbc <hzqbbc@hzqbbc.com> - ExtMail Dev Team
DECODER="/var/www/extsuite/extmail/tools/decode -v"
if ((/^(From|Sender|Return-Path):.*MAILER\-DAEMON/))
{
BADSENDER=1
}
# Auto deliver to Junk mailbox support if there is no custom
# mailfilter, need test command and correct PATH env
`test -f $HOME/.mailfilter && exit 1 || exit 0`
# No customize filtering rules
if ( $RETURNCODE == 0 )
{
if (/^X-Spam-Flag:.*YES/ || /^X-DSPAM-Result:.*Spam/)
{
exception {
to "$HOME/Maildir/.Junk/."
}
}
}