Steven W. Orr wrote:

>On Thursday, Apr 21st 2005 at 10:46 -0700, quoth [EMAIL PROTECTED]:
>
>=>Steven W. Orr wrote:
>=>> I have just recently noticed that I don't seem to have Bayes working
>=>> and I don't know why. I'm on Fedora Core 3/sendmail-8.13.1/SA-3.0.2
>=>> and spamass-milter-0.3.0-1.1
>=>...
>=>> Any suggestions would be very welcome.
>=>> 
>=>> TIA
>=>
>=>http://wiki.apache.org/spamassassin/SiteWideBayesSetup
>=>
>
>Sorry. This is not my problem. I do not want site-wide Bayes setup. I want 
>to find out why Bayes is not happening for *my* account. Do I need to 
>provide more info?
>
>  
>
Steven, you're effectively going to be site-wide anyway. Since you are
using a milter, SA is only ever going to be invoked as one user,
probably root. SA will not be aware of "your" account, vs any other
account. SA doesn't care who's receiving the mail, it cares what userid
it's running as.

Also, since spamd loathes to scan messages while running as root, it's
probably revoking itself over to nobody for security reasons. Nobody
probably does not (and should not) have a home directory it can write
to. Since SA defaults to trying to store the bayes DB in the current
user's home directory,  no bayes database can ever be created, thus no
learning ever occurs, and no bayes ever gets used.

You have two possible solutions:

1) use a "site wide" bayes setup, so that when running as nobody spamd
can write to a bayes DB which is somewhere other than it's home.

2) create a nonprivleged user "spamd" or similar user. Make this user
with no login ability, but give it a home directory. Use the -u
parameter to spamd to cause it to scan all mail as this account. This
way you will have a bayes database for spamd to learn to, and bayes will
eventually kick in.

Reply via email to