1、安装 Extmail

说明:

Extmail-1.0.9正式加入垃圾邮件举报功能,主要基于xueron的补丁包,并进行了一定的调整,使该功能可以兼容DSPAM及Spamassassin两种内容过滤软件的训练。
Extmail-1.1.1加入(stvictor)提供的spamassassin举报功能,感谢!

shell

# cd /var/www/extsuite
# mv extmail extmail-bak
# tar zxvf /root/src/extmail-1.1.1.tar.gz
# mv extmail-1.1.1extmail

2、设置 webmail.cf

shell

# cd extmail
# cp webmail.cf.default webmail.cf
# vi webmail.cf

打开spam举报开关:其它变动根据实际情况修改

SYS_SPAM_REPORT_ON  = 1
SYS_SPAM_REPORT_TYPE = dspam

3、设置maidrop的全局过滤

自动将垃圾信丢垃圾箱

shell

# vi /etc/maildroprc

内容如下:

# 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/."
    }
  }
}
 
五、安装_extmail.txt · 最后更改: 2012/10/23 13:44 由 shaobo
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki