maildrop 的错误 mailfilter(45):_Syntax_error

xiaoone
maildrop 的错误 mailfilter(45):_Syntax_error

大伙们,这里有个问题,我要用maildrop调用 。但用test01用户发送邮件时出现了这个信息,说mailfilter出错哦,我改了NNNNN多次,都没有消失这个错误,邮件是接收和发都不行的。请大伙们看看。。。。。。。



[root@mx2 itt.com.cn]# tail /var/log/qmail/current
@4000000048515c051ee700cc status: exiting
@4000000048515c103844cedc status: local 0/10 remote 0/20
@4000000048515c6300edc524 status: exiting
@4000000048515c6617db1fd4 status: local 0/10 remote 0/20
@4000000048515d511d7f2b9c status: exiting
@4000000048515d6035bdd1f4 status: local 0/10 remote 0/20
@4000000048515f0723f80bc4 starting delivery 1: msg 1844525 to local [email]it.com.cn-test01@itt.com.cn[/email]
@4000000048515f072424867c status: local 1/10 remote 0/20
@[color=Lime]400000004851635329914dd4 delivery 2: deferral: mailfilter(45):_Syntax_error./
@400000004851635329916d14 status: local 0/10 remote 0/20[/color]cat mailfilter
VHOME=`/email/vmail/bin/vuserinfo -d $EXT@$HOST`                                                               

VSPAM=`/email/vmail/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"                                                         

       }                                                                                                         

}                                                                                                                 

if (/^X-Spam-Flag: YES/)                                                                                          

{                                                                                                                  

       to "$VSPAM/Maildir/.Trash/."                                                                                

       EXITCODE=0                                                                                                  

}                                                                                                                  

else                                                                                                               

{                                                                                                                                                                                                                           

       to "$VHOME/Maildir/."              

}

如有好的方法 请介绍给小弟,小北感激不尽。哈哈。。。。。。



           -------------工作是硬头皮顶上去,学习是舒心地接受。

xiaoone
回复 #1 xiaoone 的帖子

已经解决 是格式的问题。。。。

bevan
我也发现有这个错误,是什么格式的问题啊?怎么改,谢谢老大。

E-baby
[quote]原帖由 [i]bevan[/i] 于 2008-6-21 10:11 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8631584&ptid=1158521][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
我也发现有这个错误,是什么格式的问题啊?怎么改,谢谢老大。 [/quote]
不知道shell编程的书写规范?:mrgreen:

xiaoone
回复 #3 bevan 的帖子

其实跟写SHELL没什么差别,只是在复制人家代码时小心点啦,最好还是用文本文件啦,还要注意每行的的起始符,换行符等的。。。。。。