maildorp 权限非得设成600 不可,还有 vpopmail 要有bin/bash
[root@mx it.com.cn]# chmod 600 mailfilter
[root@mx it.com.cn]# history |grep chmod
674 chmod 774 smtpproxy.1
742 chmod 775 smtpproxy
1391 chmod 700 mailfilter
1476 chmod 744 mailfilter
1478 chmod 600 mailfilter
1479 history |grep chmod
[root@mx it.com.cn]# vi mailfilter
VHOME=`/email/vmail/bin/vuserinfo -d $EXT@$HOST`
VSPAM=`/email/vmail/bin/vuserinfo -d $EXT@$HOST`
SHELL="/bin/bash"
`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"
}
}
if (/^X-Spam-Flag: YES/)
{
to "$VSPAM/Maildir/.Trash/."
EXITCODE=0
}
else
{
to "$VHOME/Maildir/."
}
~
阅读(470) | 评论(0) | 转发(0) |