Try using su to change to the amavis user before running your cron. something like this:
su - amavis -c "sa-learn --dbpath=/var/amavis/.spamassassin/bayes --spam
> /var/amavis/.maildir/spam/cur >> /var/log/learning.log"


Also, your sig creeps me out. Too many fingers on each hand. :-)

David Jim�nez Dom�nguez wrote:
Hi list!!!!

I'm using SA 2.63 with Amavis-New and Postfix...

Everyday I run a fcron script that try to learn from the messages in x directory
ej.

sa-learn --dbpath=/var/amavis/.spamassassin/bayes --spam
/var/amavis/.maildir/spam/cur >> /var/log/learning.log

I have these lines in my local.cf


bayes_path /var/amavis/.spamassassin/bayes bayes_file_mode 0770

And these are the files permissions in my /var/amavis/.spamassassin/

-rw-rw----  2 amavis amavis  903164 Aug 26 17:30 auto-whitelist.dir
-rw-rw----  2 amavis amavis  903164 Aug 26 17:30 auto-whitelist.pag
-rw-------  1 amavis amavis   31157 Aug 26 17:30 bayes_journal
-rw-rw----  1 amavis amavis  688128 Aug 26 17:15 bayes_seen
-rw-rw----  1 amavis amavis 5337088 Aug 26 17:15 bayes_toks

but somedays after the fcron script, the bayes_toks changes its owner to

-rw-rw----  1 root   root   5337088 Aug 26 17:00 bayes_toks

And after that, de BAYES_XX header doesn't appear in the incoming messages....

Could Somebody help me??


David Jim�nez Dominguez --------------------------------------------------------- Becario Unam-Cert Direcci�n General de Servicios de C�mputo Acad�mico, Circuito Exterior, C.U. (frente a FCA). c.p. 04510 M�xico D.F. Tel�fono: 56228169 Fax:56228043 __ | \ _ . _| (_|__/_(_|_\/_|_(_| /) (\ / ) ( \ _( (_ _ _ _) )_ (((\ \> /_> <_\ </ /))) (\\\\ \_/ / \ \_/ ////) \ / \ / \ _/ \_ / / / \ \ / / \ \ ---------------------------------------------------------



Reply via email to