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

Re: [vps-mail] VPS2, Bayes problem



On Wed, Mar 31, 2004 at 03:52:53PM -0800, Abigail Marshall wrote:
> 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

Because /var/mail/spam is not writable by the UID of the user you've
drop privileges to.

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

It's probably trying to update root's bayes filter because procmail is
running with root's UID at this time.

It sounds like you want the following behavior:

  * scan mail with spamassassin with the recipient's UID (for Bayes
    training)
  * deliver the mail to their mailbox if it's not spam
  * deliver the mail to /var/mail/spam if it is spam

You might simply be able to set /var/mail/spam to root:mail ownership
and chmod it to 664. If that doesn't work, let us know and we might be
able to cobble a recipe that accomplishes what you need.

Scott
-- 
Scott Wiersdorf
scott@xxxxxxxxxxxx
======================================================================
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: