Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2068034
  • 博文数量: 178
  • 博客积分: 2076
  • 博客等级: 大尉
  • 技术积分: 2800
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-10 10:50
文章分类

全部博文(178)

文章存档

2010年(4)

2009年(13)

2008年(161)

我的朋友

分类: LINUX

2008-09-04 18:28:42


 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/."
}
~                    
阅读(426) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~