вот что смущает в логе spamassassin:
dbg: bayes: no dbs present, cannot tie DB R/O: /tmp/spamd-9341-init/.spamassassin/bayes_toks
#cat /etc/mail/spamassassin/local.cf
trusted_networks 172.23.1.
trusted_networks 127.
required_hits 5
rewrite_header Subject *****SPAM*****
report_safe 0
required_score 10
ok_languages ru en de
add_header all Report _REPORT_
use_bayes 1
bayes_auto_learn 1
use_bayes_rules 1
skip_rbl_checks 0
use_auto_whitelist 1
auto_whitelist_factor 0.2
report_contact to administrator redmoon@mydomain.ru
auto_whitelist_path /etc/mail/spamassassin/auto-whitelist
bayes_path /etc/mail/spamassassin/bayes
user_scores_dsn DBI:mysql:spamassassin:localhost
user_scores_sql_username spamd
user_scores_sql_password mypass
user_scores_sql_table userpref
проверь права доступа на каталог, где лежат базы bayes
на /etc/mail/spamassassin 0755
а на файлы bayes 0600
если не ошибаюсь
>проверь права доступа на каталог, где лежат базы bayes
>на /etc/mail/spamassassin 0755
>а на файлы bayes 0600
>если не ошибаюсь
не помогло вот что в логе
dbg: bayes: tie-ing to DB file R/O /etc/mail/spamassassin/bayes_toks
Wed Nov 2 16:17:20 2005 [13005] warn: bayes: cannot open bayes databases /etc/mail/spamassassin/bayes_* R/O: tie failed:
Wed Nov 2 16:17:20 2005 [13005] dbg: bayes: untie-ing DB file toks
Wed Nov 2 16:17:20 2005 [13005] dbg: config: score set 0 chosen.
Wed Nov 2 16:17:20 2005 [13005] dbg: message: ---- MIME PARSER START ----
Wed Nov 2 16:17:20 2005 [13005] dbg: message: main message type: text/plain
Wed Nov 2 16:17:20 2005 [13005] dbg: message: parsing normal part
Wed Nov 2 16:17:20 2005 [13005] dbg: message: added part, type: text/plain
Wed Nov 2 16:17:20 2005 [13005] dbg: message: ---- MIME PARSER END ----
Wed Nov 2 16:17:20 2005 [13005] dbg: bayes: no dbs present, cannot tie DB R/O: /tmp/spamd-13005-init/.spamassassin/bayes_toks
Wed Nov 2 16:17:20 2005 [13005] dbg: dns: is DNS available? 0вот ключи запуска spamd:
="-d -D -L -u krus -C /etc/mail/spamassassin -r /var/run/spamd/spamd.pid --socketpath=/var/run/spamd/spamd.sock -s /var/log/spamd/spamd.log -H /home/spamd"
то есть из под юзера крус.
вот пермишены:
#ls -ld /etc/mail
drwxr-xr-x 3 root root 4096 Ноя 13 2004 /etc/mail
#ls -ld /etc/mail/spamassassin
drwxr-xr-x 2 krus root 4096 Ноя 2 16:18 /etc/mail/spamassassin
#ls -al /etc/mail/spamassassin
итого 76
drwxr-xr-x 2 krus root 4096 Ноя 2 16:22 .
drwxr-xr-x 3 root root 4096 Ноя 13 2004 ..
-rw-rw-rw- 1 root root 12442 Окт 31 14:53 auto-whitelist
-rw------- 1 krus krus 20480 Окт 29 18:40 bayes_seen
-rw------- 1 krus krus 20480 Окт 29 18:40 bayes_toks
-rw-rw-rw- 1 root root 890 Окт 31 14:40 init.pre
-rw-rw-rw- 1 root root 997 Ноя 2 15:01 local.cf
-rw-rw-rw- 1 root root 2397 Окт 31 14:40 v310.preеще какие советы .. принимаю все .
Блин не рассмотрел сначалавот на этот модуль вроде ругается - у тебя его нет
Mail::SpamAssassin::BayesStore::DBM
##local.cf:
use_bayes 1
bayes_path /etc/mail/spamassassin/bayes
bayes_file_mode 0664
#### end
run "sa-learn" in order to learn for HAM (good mail) and SPAM (bad mail):sa-learn --showdots --ham /path/to/maildir/with/ham
sa-learn --showdots --spam /path/to/maildir/with/spamif you use mbox format instead of maildir format you will have to add "--mbox" to sa-learn parameters:
sa-learn --mbox --showdots --ham /path/to/mbox/with/ham
sa-learn --mbox --showdots --spam /path/to/mbox/with/spamalso make sure that the user spamassassin runs with has r/w access to /etc/mail/spamassassin and to /etc/mail/spamassassin/bayes* files
hope it helps