On Monday 20 October 2003 11:47 am, Praedor Atrebates wrote:
> Now I use spamd with spamc called from a procmail recipe.  The user is 
> "nobody" instead of me.  So, does doing "sa-learn", etc still work?  Does 
> user root or nobody make use of the learning I give to spamassassin via 
> sa-learn?

On Monday 20 October 2003 12:12 pm, Jack Coates wrote:
> I actually don't use sa-learn, but I do use individual procmailrc's
> instead of /etc/procmailrc; this causes spamc to always be called with
> the user's UID.
>

This isn't necessary.  By default, spamd does a setuid to the user that runs 
'spamc'.  The default Mandrake configuration does this.  See 'man spamd', and 
the '-u' option.

You can check this by turning on debugging by changing 
/etc/init.d/spamassassin so 

        OPTIONS="-D -d -c -a -H"

You should see in /var/log/messages a line like:

Oct 20 18:23:37 DepotRd spamd[3443]: info: setuid to glenn succeeded 

A site wide Bayes database can be configured in /etc/mail/spamassassin with 
the lines:

bayes_path              /var/spool/spamassassin/bayes
bayes_file_mode         0777


I don't think that the Bayes databases are updated at all unless you 
explicitly use 'spamassassin -r', or 'sa-learn'.  But don't quote me.

The 2.44 version of Spamassassin included with Mandrake 9.1 didn't include the 
Bayes classifier; get the most current version from the Spamassassin web 
site.

See this FAQ entry for tips on submitting whole mailboxes to spamassassin:

http://spamassassin.taint.org/faq/index.cgi?req=show&file=faq02.003.htp

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to