- 论坛徽章:
- 0
|
本帖最后由 kb2008 于 2011-04-15 17:53 编辑
我的是EXOS1.5的邮件服务器
自定义垃圾邮件
$more /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
}
# Custom filter and auto deliver to Junk mailbox support
# need test command and other Unix command
`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/."
}
}
}
但是 不知道为什么,我正常的邮件也被这个规则匹配到了
邮件头:
From - Fri Apr 15 16:32:37 2011
X-Account-Key: account4
X-UIDL: UID68887-1245417081
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Return-Path: <l*********>
Delivered-To: **********Received: from localhost (localhost.localdomain [127.0.0.1])
X-DSPAM-Result: Innocent -------------------------------------------------------
X-DSPAM-Processed: Fri Apr 15 16:35:52 2011
X-DSPAM-Confidence: 0.9899
X-DSPAM-Probability: 0.0000
X-DSPAM-Signature: 1,4da80368151261932080670
X-Spam-Flag: NO ----------------------------------------------------------------------
X-Spam-Score: 2.384
X-Spam-Level: **
用户是没有自己的垃圾邮箱规则的 |
|