- 论坛徽章:
- 0
|
为了反垃圾邮件,安装了MailDrop+SpamAssassin,现在的问题是发送正常的邮件后,
稍微有点延迟(和原来相比)能收到,发送垃圾邮件之后,邮件一直呆在队列里,如下:
messages in queue: 2
messages in queue but not yet preprocessed: 0
超过时间后,收到MAILER-DAEMON邮件,内容如下:
/usr/local/bin/maildrop: Unable to open mailbox.
I'm not going to try again; this message has been in the queue too long
在domains/xxxxxx.com/的下面文件
1。.qmail-default的设定内容:
| /usr/local/bin/maildrop ./.mailfilter
2。.mailfilter的设定内容:
import EXT
import HOST
SHELL=/bin/bash
VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`
`test -d $VHOME/Maildir/`
if( $RETURNCODE != 0 )
{
echo "Sorry , but the user $EXT@$HOST dos not exist"
EXITCODE=77
exit
}
if ( $SIZE < 262144 )
{
exception {
xfilter "/usr/bin/spamc -f -u $EXT@$HOST"
}
}
else
{
to "$VHOME/Maildir/."
}
if (/^X-Spam-Status: YES/)
{
to "$VHOME/Maildir/.Trash/."
EXITCODE=0
}
else
{
to "$VHOME/Maildir/."
}
另外想询问一下,Maildir/.Trash目录,自己手动创建吗?
[ 本帖最后由 HawaiiLeo 于 2008-5-19 08:34 编辑 ] |
|