Chinaunix

标题: 我的spamassassin 规则为什么跳过了。兄弟们帮忙了,小弟跪谢了!!在线等,,, [打印本页]

作者: ralf126    时间: 2006-11-28 11:59
标题: 我的spamassassin 规则为什么跳过了。兄弟们帮忙了,小弟跪谢了!!在线等,,,
我的sendmail 目录下存在spamassassin目录, 看服务spamassassin在运行。但好象没什么作用。帮忙啊。谢谢了··
我打了如下的指令
spamassassin -D --lint

输出结果:
                                          
debug: ignore: using a test message to lint rules                                                
debug: using "/usr/share/spamassassin" for default rules dir                                                            
debug: using "/etc/mail/spamassassin" for site rules dir                                                        
debug: using "/home/chwei/.spamassassin" for user state dir                                                           
debug: using "/home/chwei/.spamassassin" for user state dir                                                           
Created user preferences file: /home/chwei/.spamassassin/user_prefs                                                                  
debug: using "/home/chwei/.spamassassin/user_prefs" for u                                                      
Failed to parse line in SpamAssassin configuration, skipping: rewrite_header Sub                                                                                
ject *****SPAM*****                  
Failed to parse line in SpamAssassin configuration, skipping: report_safe 1                                                                           
Failed to parse line in SpamAssassin configuration, skipping: use_bayes 1                                                                        
Failed to parse line in SpamAssassin configuration, skipping: auto_learn 1                                                                          
Failed to parse line in SpamAssassin configuration, skipping: bayes_auto_learn 1                                                                                

Failed to parse line in SpamAssassin configuration, skipping: bayes_min_ham_num                                                                              
500   
Failed to parse line in SpamAssassin configuration, skipping: bayes_min_spam_num                                                                                
500   
Failed to parse line in SpamAssassin configuration, skipping: bayes_auto_learn_t                                                                                
hreshold_nonspam 1.0                    
Failed to parse line in SpamAssassin configuration, skipping: bayes_auto_learn_t                                                                                
hreshold_spam 9.0                 
debug: is Net:NS::Resolver unavailable? 0                                          
debug: trying (3) leo.org...                           
debug: looking up MX for 'leo.org'
debug: MX for 'leo.org' exists? 1
debug: MX lookup of leo.org succeeded => Dns available (set dns_available to har
dcode)
debug: is DNS available? 1
debug: running header regexp tests; score so far=0
debug: running body-text per-line regexp tests; score so far=2.4
debug: check_for_very_long_text: found 1350 bytes
debug: check_for_very_long_text: found 1350 bytes
debug: Loading languages file...
debug: Language possibly: en,sco
debug: spam-phrase score: 32.7734170591313: hits: this message
debug: running raw-body-text per-line regexp tests; score so far=4.3
debug: running uri tests; score so far=4.3
debug: uri tests: Done uriRE
debug: running full-text regexp tests; score so far=4.3
debug: Razor2 is not available
debug: DCC is not available: dccproc not found
debug: Razor1 is not available
debug: Pyzor is not available: pyzor not found
debug: running meta tests; score so far=5.3
debug: is spam? score=5.3 required=5 tests=DATE_MISSING,INVALID_MSGID,MISSING_HE
ADERS,NO_REAL_NAME,SPAM_PHRASE_21_34,SUBJ_MISSING,SUPERLONG_LINE
作者: ralf126    时间: 2006-11-28 12:32
难道就没有人会吗???我的spamassassin是不是有问题。那为什么跳过呢。大哥知道的帮帮忙了。或指条明道。谢谢
作者: abel    时间: 2006-11-28 12:35
把你的 rewrite_header Sub 前面的東西看一下,
一定是哪裏寫錯了
作者: ralf126    时间: 2006-11-28 12:41
这是我spamassassin里的local.cf的文件。帮忙看下,# without risking lost emails.

required_hits 5
rewrite_subject 1
subject_tag [SPAM]
rewrite_header Subject *****SPAM*****
whitelist_from_rcvd @abc.com.cn abc.com.cn


report_safe 1
defang_mime 0
rewrite_subject 0
report_header 1
use_terse_report 1
use_bayes 1
auto_learn 1
bayes_auto_learn 1
bayes_min_ham_num 500
bayes_min_spam_num 500
bayes_auto_learn_threshold_nonspam 1.0
bayes_auto_learn_threshold_spam 9.0
ok_languages zh en
ok_locales en zh
作者: abel    时间: 2006-11-28 13:38
你不會自己查 ? 一行一行實驗嗎 ?
非得全都問人才甘願 ?
作者: jacky_hui    时间: 2006-11-28 13:56
应是单词错了,要注意板本不同后,里面的参数名会有很大的改变的.
作者: ralf126    时间: 2006-11-28 16:45
我挨个试了。就下列的语句错了。想知道为什么。是拼错了。还是怎么回事。知道的,麻烦说下。。。

report_safe 1

use_bayes 1
auto_learn 1


bayes_auto_learn 1
bayes_min_ham_num 500
bayes_min_spam_num 500
bayes_auto_learn_threshold_nonspam 1.0
bayes_auto_learn_threshold_spam 9.0
作者: lzj_0619    时间: 2006-11-28 17:38
免费的东西我一直不敢用,我们公司用的是EQManager.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2