免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1856 | 回复: 7
打印 上一主题 下一主题

[Mail] 我的spamassassin 规则为什么跳过了。兄弟们帮忙了,小弟跪谢了!!在线等,,, [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-28 11:59 |只看该作者 |倒序浏览
我的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

论坛徽章:
0
2 [报告]
发表于 2006-11-28 12:32 |只看该作者
难道就没有人会吗???我的spamassassin是不是有问题。那为什么跳过呢。大哥知道的帮帮忙了。或指条明道。谢谢

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
3 [报告]
发表于 2006-11-28 12:35 |只看该作者
把你的 rewrite_header Sub 前面的東西看一下,
一定是哪裏寫錯了

论坛徽章:
0
4 [报告]
发表于 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

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
5 [报告]
发表于 2006-11-28 13:38 |只看该作者
你不會自己查 ? 一行一行實驗嗎 ?
非得全都問人才甘願 ?

论坛徽章:
0
6 [报告]
发表于 2006-11-28 13:56 |只看该作者
应是单词错了,要注意板本不同后,里面的参数名会有很大的改变的.

论坛徽章:
0
7 [报告]
发表于 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

论坛徽章:
0
8 [报告]
发表于 2006-11-28 17:38 |只看该作者
免费的东西我一直不敢用,我们公司用的是EQManager.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP