LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 920|回复: 8

版主帮帮忙~~~有关spamassassin防垃圾邮件的问题

[复制链接]
发表于 2003-8-25 10:13:19 | 显示全部楼层 |阅读模式
我的配置local.cf文件如下
required_hits 4

subject_tag [SPAM]

report_header 1

use_terse_report 1

report_safe 0

ok_languages zh en

ok_locales en zh

body CH_FREE /free/
describe CHFREE CONTAIN
score CH_FREE 6.0

但是重启服务后,在邮件里打了N个free进去邮件总是还可以收到,并没有被挡回去或是做标记,希望高手能帮一下我,谢谢了


_________________
HELLO
发表于 2003-8-25 10:24:05 | 显示全部楼层
好东西嘛,
是不是没和你的email服务器连起来
 楼主| 发表于 2003-8-25 10:38:16 | 显示全部楼层
在服务里面看是已经打开了
但是就是不起作用
楼上的兄弟有高招吗?谢谢了
 楼主| 发表于 2003-8-25 10:40:29 | 显示全部楼层
顺带说一下我的邮件系统:qmail+vpopmail+mysql+igenus
发表于 2003-8-25 13:58:46 | 显示全部楼层
高招说不上,通常要从log里找原因,
你的qmail的log里有没有相关信息 :ask
 楼主| 发表于 2003-8-25 14:28:42 | 显示全部楼层
我把服务重启了,然后从另外一邮件系统发了封带有free这个词的邮件过来,MAILLOG的记录如下

Aug 25 14:33:11 xmail spamd[2197]: server started on port 783 (running version 2.55)
Aug 25 14:33:36 xmail spamd[2197]: server killed by SIGTERM, shutting down
Aug 25 14:34:29 xmail spamd[2216]: server started on port 783 (running version 2.55)
Aug 25 14:36:50 xmail qmail: 1061793410.179092 starting delivery 86: msg 812127 to local lqqx.cn-wxb@lqqx.cn
Aug 25 14:36:50 xmail qmail: 1061793410.179293 status: local 1/10 remote 0/20
Aug 25 14:36:50 xmail qmail: 1061793410.313747 delivery 86: deferral: /usr/local/bin/mailquotacheck:_line_1:_/usr/ucb/expr:_No_such_file_or_directory//usr/local/bin/mailquotacheck:_line_1:_/usr/ucb/expr:_No_such_file_or_directory//usr/local/bin/mailquotacheck:_line_1:_/usr/ucb/du:_No_such_file_or_directory//usr/local/bin/mailquotacheck:_line_1:_/usr/ucb/expr:_No_such_file_or_directory//usr/local/bin/mailquotacheck:_line_103:_[:_-gt:_unary_operator_expected//usr/local/bin/mailquotacheck:_line_112:_[:_-gt:_unary_operator_expected/Sorry,_Your_message_cannot_be_delivered_bacause_the_recipient_does_not_have\nenough_disk_space_left_for_it./\n_However,_small_(<_1Kb)_message_will_be_delivered_should_you_wish/____to\ninform_the_person_you_tried_to_email./
Aug 25 14:36:50 xmail qmail: 1061793410.313954 status: local 0/10 remote 0/20
Aug 25 14:38:35 xmail qmail: 1061793515.627223 new msg 812128
Aug 25 14:38:35 xmail qmail: 1061793515.627430 info msg 812128: bytes 1966 from <s1@lqqx.cn> qp 2244 uid 508
Aug 25 14:38:35 xmail qmail: 1061793515.702185 starting delivery 87: msg 812128 to remote wuxinbo@wanxiang.com.cn
Aug 25 14:38:35 xmail qmail: 1061793515.702385 status: local 0/10 remote 1/20
Aug 25 14:38:36 xmail qmail: 1061793516.228968 delivery 87: success: 61.130.58.131_accepted_message./Remote_host_said:_250_ok_1061792017_qp_18567/
Aug 25 14:38:36 xmail qmail: 1061793516.229169 status: local 0/10 remote 0/20
Aug 25 14:38:36 xmail qmail: 1061793516.229307 end msg 812128
Aug 25 14:39:54 xmail splogger: 1061793594.864279 tcpserver: status: 1/100
Aug 25 14:39:54 xmail splogger: 1061793594.865120 tcpserver: pid 2246 from 61.130.58.131
Aug 25 14:39:54 xmail splogger: 1061793594.865768 tcpserver: ok 2246 lqqx.cn:3.0.0.11:25 :61.130.58.131::40157
Aug 25 14:39:54 xmail qmail: 1061793594.894544 new msg 812128
Aug 25 14:39:54 xmail qmail: 1061793594.894757 info msg 812128: bytes 490 from <wuxinbo@wanxiang.com.cn> qp 2247 uid 502
Aug 25 14:39:54 xmail splogger: 1061793594.900017 tcpserver: end 2246 status 0
Aug 25 14:39:54 xmail splogger: 1061793594.900317 tcpserver: status: 0/100
Aug 25 14:39:54 xmail qmail: 1061793594.906066 starting delivery 88: msg 812128 to local lqqx.cn-s1@lqqx.cn
Aug 25 14:39:54 xmail qmail: 1061793594.906259 status: local 1/10 remote 0/20
Aug 25 14:39:54 xmail qmail: 1061793594.945513 delivery 88: success: did_0+0+1/
Aug 25 14:39:54 xmail qmail: 1061793594.945713 status: local 0/10 remote 0/20
Aug 25 14:39:54 xmail qmail: 1061793594.945845 end msg 812128
"/var/log/maillog" [&Ograve;&Ntilde;×&ordf;&raquo;&raquo;] 781L, 150051C
 楼主| 发表于 2003-8-25 14:50:42 | 显示全部楼层
又做了些更改,把SPAMASSASSIN的DEBUG记录到MAILLOG里了
Aug 25 14:52:36 xmail spamd[2216]: server killed by SIGTERM, shutting down
Aug 25 14:54:21 xmail spamd[613]: debug: daemonized.
Aug 25 14:54:21 xmail spamd[613]: debug: ignore: test message to precompile patterns and load modules
Aug 25 14:54:21 xmail spamd[613]: debug: using "/usr/share/spamassassin" for default rules dir
Aug 25 14:54:22 xmail spamd[613]: debug: using "/etc/mail/spamassassin" for site rules dir
Aug 25 14:54:26 xmail spamd[613]: debug: Failed to parse line in SpamAssassin configuration, skipping: report_header 1
Aug 25 14:54:26 xmail spamd[613]: debug: Failed to parse line in SpamAssassin configuration, skipping: defang_mine 0
Aug 25 14:54:26 xmail spamd[613]: debug: Failed to parse line in SpamAssassin configuration, skipping: use _razor2 1
Aug 25 14:54:27 xmail spamd[613]: debug: bayes: no dbs present, cannot scan: /tmp/spamassassin-613/.spamassassin/bayes_toks
Aug 25 14:54:27 xmail spamd[613]: debug: Score set 1 chosen.
Aug 25 14:54:27 xmail spamd[613]: debug: Initialising learner
Aug 25 14:54:27 xmail spamd[613]: debug: debug: Only 0 spam(s) in Bayes DB < 200
Aug 25 14:54:27 xmail spamd[613]: debug: bayes: 613 untie-ing
Aug 25 14:54:27 xmail spamd[613]: debug: bayes: 613 untie-ing db_toks
Aug 25 14:54:27 xmail spamd[613]: debug: is Net:NS::Resolver available? yes
Aug 25 14:54:27 xmail spamd[613]: debug: Initialising learner
Aug 25 14:54:27 xmail spamd[613]: debug: debug: Only 0 spam(s) in Bayes DB < 200
Aug 25 14:54:27 xmail spamd[613]: debug: bayes: 613 untie-ing
Aug 25 14:54:27 xmail spamd[613]: debug: bayes: 613 untie-ing db_toks
Aug 25 14:54:27 xmail spamd[613]: debug: is Net:NS::Resolver available? yes
Aug 25 14:54:27 xmail spamd[613]: debug: trying (3) amazon.com...
Aug 25 14:54:27 xmail spamd[613]: debug: looking up MX for 'amazon.com'
Aug 25 14:54:27 xmail spamd[613]: debug: MX for 'amazon.com' exists? 1
Aug 25 14:54:27 xmail spamd[613]: debug: MX lookup of amazon.com succeeded => Dns available (set dns_available to hardcode)
Aug 25 14:54:27 xmail spamd[613]: debug: is DNS available? 1
Aug 25 14:54:27 xmail spamd[613]: debug: running header regexp tests; score so far=0
Aug 25 14:54:27 xmail splogger: 1061794467.062428 tcpserver: status: 0/100
Aug 25 14:54:27 xmail splogger: 1061794467.066388 tcpserver: status: 0/100
Aug 25 14:54:27 xmail qmail: 1061794467.577487 status: local 0/10 remote 0/20
Aug 25 14:54:28 xmail spamd[613]: debug: running body-text per-line regexp tests; score so far=1.9
Aug 25 14:54:30 xmail spamd[613]: debug: Loading languages file...
Aug 25 14:54:31 xmail spamd[613]: debug: Language possibly: en,sco
Aug 25 14:54:31 xmail spamd[613]: debug: running raw-body-text per-line regexp tests; score so far=7.9
Aug 25 14:54:31 xmail spamd[613]: debug: running uri tests; score so far=7.9
Aug 25 14:54:31 xmail spamd[613]: debug: uri tests: Done uriRE
Aug 25 14:54:31 xmail spamd[613]: debug: running full-text regexp tests; score so far=7.9
Aug 25 14:54:31 xmail spamd[613]: debug: Razor2 is available
Aug 25 14:54:31 xmail spamd[613]: debug: Razor2 is available
Aug 25 14:54:31 xmail spamd[613]: debug: entering helper-app run mode
Aug 25 14:54:41 xmail spamd[613]: debug: razor2 check timed out after 10 secs.
Aug 25 14:54:41 xmail spamd[613]: debug: leaving helper-app run mode
Aug 25 14:54:42 xmail spamd[613]: debug: Razor2 results: spam? 0  highest cf score: 0
Aug 25 14:54:42 xmail spamd[613]: debug: all '*From' addrs: ignore@compiling.spamassassin.taint.org
Aug 25 14:54:42 xmail spamd[613]: debug: all '*To' addrs:
Aug 25 14:54:42 xmail spamd[613]: debug: running meta tests; score so far=8.4
Aug 25 14:54:42 xmail spamd[613]: debug: is spam? score=8.4 required=4 tests=CH_FREE,DATE_MISSING,MISSING_HEADERS,NO_REAL_NAME
Aug 25 14:54:42 xmail spamd[613]: debug: bayes: 613 untie-ing
Aug 25 14:54:42 xmail spamd[613]: server started on port 783 (running version 2.55)
Aug 25 14:54:42 xmail spamd[613]: server pid: 613
Aug 25 14:54:42 xmail spamd[613]: logmsg: server started on port 783 (running version 2.55)
Aug 25 14:54:42 xmail spamd[613]: server started on port 783 (running version 2.55)
Aug 25 14:58:00 xmail splogger: 1061794680.778301 tcpserver: status: 1/100
Aug 25 14:58:00 xmail splogger: 1061794680.779138 tcpserver: pid 779 from 61.130.58.131
Aug 25 14:58:00 xmail splogger: 1061794680.801245 tcpserver: ok 779 lqqx.cn:3.0.0.11:25 :61.130.58.131::41005
Aug 25 14:58:00 xmail splogger: 1061794680.951194 tcpserver: end 779 status 0
Aug 25 14:58:00 xmail splogger: 1061794680.951389 tcpserver: status: 0/100
Aug 25 14:58:00 xmail qmail: 1061794680.976576 new msg 812127
Aug 25 14:58:00 xmail qmail: 1061794680.977835 info msg 812127: bytes 489 from <wuxinbo@wanxiang.com.cn> qp 780 uid 502
 楼主| 发表于 2003-8-30 09:49:32 | 显示全部楼层
顶一下
发表于 2003-8-30 13:24:59 | 显示全部楼层
Aug 25 14:54:21 xmail spamd[613]: debug: ignore: test message to precompile patterns and load modules
Aug 25 14:54:21 xmail spamd[613]: debug: using "/usr/share/spamassassin" for default rules dir
Aug 25 14:54:22 xmail spamd[613]: debug: using "/etc/mail/spamassassin" for site rules dir
Aug 25 14:54:26 xmail spamd[613]: debug: Failed to parse line in SpamAssassin configuration, skipping: report_header 1
Aug 25 14:54:26 xmail spamd[613]: debug: Failed to parse line in SpamAssassin configuration, skipping: defang_mine 0
Aug 25 14:54:26 xmail spamd[613]: debug: Failed to parse line in SpamAssassin configuration, skipping: use _razor2 1
Aug 25 14:54:27 xmail spamd[613]: debug: bayes: no dbs present, cannot scan: /tmp/spamassassin-613/.spamassassin/bayes_toks


似乎是这一段的问题。可惜我也没用过
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表