[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] VPS2, Bayes problem



AAARGH!!

OK, here is the problem - VPS2. I can't get spamassassin to
work properly with Bayes.

If I run the program like with these procmail settings:

DROPPRIVS=yes

:0fw
|/usr/local/bin/spamc -U /var/run/spamd.sock

:0
/var/mail/spam

It will write to Bayes, but it WON'T write to /var/mail/spam


If I remove the DROPPRIVS line, it will write to
/var/mail/spam, but it WON'T write to (or update) the Bayes
database.

Then I get these errors:

> 3873-Mar 31 15:44:35 ddai spamd[43539]: info: setuid to root succeeded

> 3874-Mar 31 15:44:35 ddai spamd[43539]: Still running as
> root: user not specified with -u, not found, or set to root.
> Fall back to nobody.

> 3876:Mar 31 15:44:35 ddai spamd[43539]: cannot write to
> /root/.spamassassin/bayes_journal, Bayes db update ignored


I'm going to try running it as:

|/usr/local/bin/spamc -u root -U /var/run/spamd.sock

and see what happens, but this is driving me NUTS.

Alternatively, is it possible to undrop the privileges, like
this:

DROPPRIVS=yes

:0fw
|/usr/local/bin/spamc -U /var/run/spamd.sock

DROPPRIVS=no

:0
/var/mail/spam


-Abigail

======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: