IS 的人要求我屏蔽没有主题(空主题)的邮件,我正在使用MDaemon 9.5.1
,其中一个人给了我这个规则
[Rule015]
RuleName=no empy subject
Enable=No
ThisRuleCondition=All
ProcessQueue=LOCAL
Condition01=SUBJECT|reg exp|AND|^..+$|
Action01=skip rule|"1"
[Rule016]
RuleName=empty subject
Enable=No
ThisRuleCondition=All
ProcessQueue=BOTH
Condition01=SUBJECT|exists|AND|
Action01=send note|"to <$SENDER$>","from <[email protected]>","subject <Mail Rejected.>","x-flag=attach <$COPYOFMESSAGE$, MIME> -X","","Bla bla bla"
Action02=send note|"to <[email protected]>","from <[email protected]>","subject <Mail rejected notification.>","x-flag=attach <$COPYOFMESSAGE$, MIME> -X","","from:$SENDER$ ","to:$RECIPIENT$ ","subject: $SUBJECT$ ","date: $DATESTAMP$ ","time: $CURRENTTIME$"
Action03=delete|
我复制了cfrules.dat
位于 MDaemon 安装目录的应用程序文件夹中的这个表单文件,所以,他们说这是正确的设置,但是,这个规则并没有真正发挥应有的作用,它会阻止没有主题的邮件和一些有主题的邮件,工作人员现在抱怨很多,我希望安全和工作人员都能没问题。
所以,这里需要帮助,我只是想阻止主题为空的邮件,但也可以通过长度来阻止,到现在我还没有成功
谢谢大家
答案1
我必须改变
[Rule016]
......
ProcessQueue=BOTH
......
到
[Rule016]
......
ProcessQueue=LOCAL
......
现在它正在工作,希望它可以帮助别人