# test if $HOME/.mailfilter exist and readable
`test -r "$HOME/.mailfilter" && exit 1 || exit 0`
if ( $RETURNCODE == 1 )
{
include "$HOME/.mailfilter"
}
#*spam2junk
if (/^X-Spam-Flag:.*YES/)
{
`test -f "$HOME/Maildir/.Junk" && exit 1 || exit 0`
if ( $RETURNCODE == 0 )
{
`maildirmake -f Junk "$HOME/Maildir"`
}
to "$HOME/Maildir/.Junk/"
}
#default to $HOME/Maildir/
to "$HOME/Maildir/"
maildorp -V 检测 maildorp状态也没有什么问题
maildrop -v
maildrop 2.0.4 Copyright 1998-2005 Double Precision, Inc.
GDBM extensions enabled.
Courier Authentication Library extension enabled.
Maildir quota extension enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional information.
重新配置了一下maildrop , postfix 的master.cf 错误如下
Dec 13 18:17:47 localhost postfix/postfix-script[3541]: starting the Postfix mail system
Dec 13 18:17:47 localhost postfix/master[3542]: daemon started -- version 2.4.6, configuration /etc/postfix
Dec 13 18:22:47 localhost postfix/qmgr[3543]: 3C7D01DE278: from=<xhd730@qdzzshoe.com>, size=218228, nrcpt=1 (queue active)
Dec 13 18:22:48 localhost pipe[3585]: fatal: pipe_command: execvp maildrop: No such file or directory
Dec 13 18:22:48 localhost postfix/pipe[3584]: 3C7D01DE278: to=<postmaster@qdzzshoe.com>, relay=maildrop, delay=12867, delays=12867/0.23/0/0.03, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp maildrop: No such file or directory )