You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Bookworm <qm...@bkwm.com> on 2005/06/12 18:18:59 UTC

using sa-learn as a different user problem.

Most of the email I'm trying to run sa-learn on is owned by vpopmail, 
and my spamassassin runs as the user 'spamd'.

Even when I try sa-learn -u spamd, it continually learns as 'root' - 
filling a bayes database in the root directory. 

Is there anyway to stop this?  I REALLY don't want to have to keep 
either 1) moving databases around, or 2) chmod and chowning directories 
and files so that the spamd user can learn from 'unlearned' spam.

BW


Re: using sa-learn as a different user problem.

Posted by Thomas Behr <Th...@bnv-bamberg.de>.
Am 06/12/2005 06:18 PM schrieb Bookworm:
> Most of the email I'm trying to run sa-learn on is owned by vpopmail, 
> and my spamassassin runs as the user 'spamd'.
> 
> Even when I try sa-learn -u spamd, it continually learns as 'root' - 
> filling a bayes database in the root directory.
> Is there anyway to stop this?  I REALLY don't want to have to keep 
> either 1) moving databases around, or 2) chmod and chowning directories 
> and files so that the spamd user can learn from 'unlearned' spam.

Hej!
You could try this (man su), if you are on an unix like system:
su -s /bin/bash spamd -c "/usr/bin/sa-learn --spam --mbox unlearnd_spam"

Ade!
Thomas