You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Rene Bartsch <ML...@Bartschnet.de> on 2004/08/30 00:50:57 UTC
Bayes not working ...
Hi,
first, I'm new to the list, so hello to all ;-)
The problem we have is running Bayes with SpamAssassin. I assume it might
be related to our setup with users having no shell:
Postfix/Spamassassin 2.64 runs on a mass-hosting server with a home
directory for each user but no shell (/bin/false).
We're using spamd/spamc and user preferences.
Configuration:
- The local.cf is empty.
- user_prefs:
------------------------ snip -------------------------
# SpamAssassin config file for version 2.5x
# generated by http://www.yrex.com/spam/spamconfig.php (version 1.01)
# How many hits before a message is considered spam.
required_hits 5.0
# Whether to change the subject of suspected spam
rewrite_subject 1
# Text to prepend to subject if rewrite_subject is used
subject_tag *****SPAM*****
# Encapsulate spam in an attachment
report_safe 0
# Use terse version of the spam report
use_terse_report 0
# Enable the Bayes system
use_bayes 1
# Enable Bayes auto-learning
auto_learn 1
# Enable or disable network checks
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1
# Mail using languages used in these country codes will not be marked # as
being possibly spam in a foreign language.
# - english german
ok_languages en de
# Mail using locales used in these country codes will not be marked # as
being possibly spam in a foreign language.
ok_locales en de
always_add_headers 1
------------------------ snap -------------------------
- .forward:
------------------------ snip -------------------------
"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #web6p1"
------------------------ snap -------------------------
- .procmailrc:
------------------------ snip -------------------------
#:0: trap.lock
#* .*it.renebartsch.com.*
#{
# :0fwc: sa-learn-trap.lock
# | /usr/bin/sa-learn --spam
#
# :0fwc: report-trap.lock
# | /usr/bin/spamassassin -r
#
# :0: trapfile.lock
# /dev/null
#}
#
#
#:0fw: sa-learn-ham.lock
#* ^X-Spam-Status: Yes
#| /usr/bin/sa-learn --ham
#
#
#:0fw: sa-learn-spam.lock
#* ^X-Spam-Status: No
#| /usr/bin/sa-learn --spam
#
#
#:0fw: clean.lock
#| /usr/bin/spamassassin -d
#
:0fw: spamc.lock
| /usr/bin/spamc -u web6p1
:0: filter.lock
* ^X-Spam-Status: Yes
{
:0fwc: report.lock
| /usr/bin/spamassassin -r
:0: spamfile.lock
$HOME/Spam
}
------------------------ snap -------------------------
SA reports only very few mails as SPAM and there are no bayes tests
mentioned in the mail header ...
Thanx for any help
Rene
P.S.: For learning I used 3000 Spams and 300 Hams by changing the
environment variable of root's home to web6p1's home directory and a chown
of the bayes files to web6p1 after learning.