- 論壇徽章:
- 0
|
為了反垃圾郵件,安裝了MailDrop+SpamAssassin,現(xiàn)在的問題是發(fā)送正常的郵件后,
稍微有點延遲(和原來相比)能收到,發(fā)送垃圾郵件之后,郵件一直呆在隊列里,如下:
messages in queue: 2
messages in queue but not yet preprocessed: 0
超過時間后,收到MAILER-DAEMON郵件,內(nèi)容如下:
/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的設定內(nèi)容:
| /usr/local/bin/maildrop ./.mailfilter
2。.mailfilter的設定內(nèi)容:
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目錄,自己手動創(chuàng)建嗎?
[ 本帖最后由 HawaiiLeo 于 2008-5-19 08:34 編輯 ] |
|