回复 10# 的帖子
检查SpamAssassin\rules是否还在。 还在的回复 12# 的帖子
打开\SpamAssassin\rules\local.cf,检查bayes_path路径是否设置正确。 # This is the right place to customize your installation of SpamAssassin.#
# See http://www.spamassassin.org/doc/Mail_SpamAssassin_Conf.html for
# details about what the parameters mean and what you can do with this
# file.
#
# MDaemon will rewrite this file when you change configuration settings
# using the MDaemon GUI.
#
# Important: keys must be followed by at least one space (not a tab).
# ex: required_hits<space>5.0 - correct!
# required_hits<tab>5.0 - wrong!Use spaces, not tabs.
#
#########################################################################
#
# 'dns_available yes' line was removed in 8.03 to use SA 3 default of
# 'test' with random NS record checks
required_score 7
rewrite_header subject [***SPAM*** Score/Req: _SCORE(0)_/_REQD_]
report_safe 0
skip_rbl_checks 1
add_header all Report _REPORT_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_)
local_tests_only 1
lock_method win32
use_hashcash 1
use_bayes 1
bayes_path D:\MDaemon\SpamAssassin\bayes\bayes
bayes_auto_learn1
bayes_auto_learn_threshold_nonspam 0.1
bayes_auto_learn_threshold_spam 24.0
bayes_auto_expire1
bayes_expiry_max_db_size 150000
bayes_min_ham_num200
bayes_min_spam_num200
use_auto_whitelist 0
auto_whitelist_path D:\MDaemon\SpamAssassin\auto_whitelist\auto_whitelist
score USER_IN_WHITELIST-100.0
score USER_IN_WHITELIST_TO -100.0
score USER_IN_BLACKLIST100.0
score MDAEMON_DNSBL 3.0
auto_whitelist_factor 0.5
auto_whitelist_file_mode 0666
score MDAEMON_SPF_FAIL15.0
score MDAEMON_SPF_PASS-0.5
score MDAEMON_DK_FAIL15.0
score MDAEMON_DK_PASS-0.5
score MDAEMON_DKIM_FAIL15.0
score MDAEMON_DKIM_PASS-0.5
全文如上,有没有问题,上面两个路径是没有问题的。不知还有其他内容没有
[ 本帖最后由 nickren 于 2007-9-5 13:23 编辑 ]
回复 14# 的帖子
把bayes_path D:\MDaemon\SpamAssassin\bayes\bayes改成bayes_path D:\MDaemon\SpamAssassin\bayes
把auto_whitelist_path D:\MDaemon\SpamAssassin\auto_whitelist\auto_whitelist
改成auto_whitelist_path D:\MDaemon\SpamAssassin\auto_whitelist
改完后重启MD。 还是不行,郁闷
回复 16# 的帖子
\SpamAssassin\bayes中bayes_seen和bayes_toks两个文件删除吧,可能学习数据坏了。 删除那两文件也不行。我重装了系统也不行,郁闷
可能是删除系统时有些其他目录的文件夹没删除掉
回复 18# 的帖子
最后一招:DOS下转到MDaemon\SpamAssassin,执行sa-learn -C ./rules -D --dump magic。 结果如下:D:\MDaemon\SpamAssassin>sa-learn /c /rules -D --dump magic
dbg: logger: adding facilities: all
dbg: logger: logging level is DBG
dbg: generic: SpamAssassin version 3.1.5
dbg: config: score set 0 chosen.
dbg: util: running in taint mode? yes
dbg: util: taint mode: deleting unsafe environment variables, resetting P
ATH
dbg: util: running on Win32, skipping PATH cleaning
dbg: util: defining getpwuid() wrapper using 'unknown' as username
dbg: message: ---- MIME PARSER START ----
dbg: message: main message type: text/plain
dbg: message: parsing normal part
dbg: message: added part, type: text/plain
dbg: message: ---- MIME PARSER END ----
dbg: dns: is Net::DNS::Resolver available? yes
dbg: dns: Net::DNS version: 0.48
config: could not find site rules directory
config: could not find sys rules directory
config: no configuration text or files found! please check your setup
dbg: bayes: tie-ing to DB file R/O C:\Documents and Settings\Administrato
r/.spamassassin/bayes_toks
dbg: bayes: tie-ing to DB file R/O C:\Documents and Settings\Administrato
r/.spamassassin/bayes_seen
dbg: bayes: found bayes db version 3
dbg: bayes: DB journal sync: last sync: 0
dbg: bayes: not available for scanning, only 2 spam(s) in bayes DB < 200
dbg: bayes: untie-ing
dbg: bayes: untie-ing db_toks
dbg: bayes: untie-ing db_seen
dbg: config: score set 1 chosen.
dbg: bayes: tie-ing to DB file R/O C:\Documents and Settings\Administrato
r/.spamassassin/bayes_toks
dbg: bayes: tie-ing to DB file R/O C:\Documents and Settings\Administrato
r/.spamassassin/bayes_seen
dbg: bayes: found bayes db version 3
0.000 0 3 0non-token data: bayes db version
0.000 0 2 0non-token data: nspam
0.000 0 3 0non-token data: nham
0.000 0 532 0non-token data: ntokens
0.000 0 1188973321 0non-token data: oldest atime
0.000 0 1188974770 0non-token data: newest atime
0.000 0 0 0non-token data: last journal sync atime
0.000 0 0 0non-token data: last expiry atime
0.000 0 0 0non-token data: last expire atime delta
0.000 0 0 0non-token data: last expire reduction co
unt
dbg: bayes: untie-ing
dbg: bayes: untie-ing db_toks
dbg: bayes: untie-ing db_seen
D:\MDaemon\SpamAssassin>^A
