You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by David Jiménez Domínguez <dj...@correo.seguridad.unam.mx> on 2004/08/27 00:18:20 UTC
bayes_tok owner problem
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
__
| \ _ . _|
(_|__/_(_|_\/_|_(_|
/) (\
/ ) ( \
_( (_ _ _ _) )_
(((\ \> /_> <_\ </ /)))
(\\\\ \_/ / \ \_/ ////)
\ / \ /
\ _/ \_ /
/ / \ \
/ / \ \
---------------------------------------------------------
Re: bayes_tok owner problem
Posted by David Jiménez Domínguez <dj...@correo.seguridad.unam.mx>.
as root
Mensaje citado por Mike Burger <mb...@bubbanfriends.org>:
> As what user are you running sa-learn?
>
> On Thu, 26 Aug 2004, 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
> > __
> > | \ _ . _|
> > (_|__/_(_|_\/_|_(_|
> > /) (\
> > / ) ( \
> > _( (_ _ _ _) )_
> > (((\ \> /_> <_\ </ /)))
> > (\\\\ \_/ / \ \_/ ////)
> > \ / \ /
> > \ _/ \_ /
> > / / \ \
> > / / \ \
> > ---------------------------------------------------------
> >
>
> --
> Mike Burger
> http://www.bubbanfriends.org
>
> Visit the Dog Pound II BBS
> telnet://dogpound2.citadel.org or http://dogpound2.citadel.org
>
> To be notified of updates to the web site, visit
> http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a
> message to:
>
> site-update-request@bubbanfriends.org
>
> with a message of:
>
> subscribe
>
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
__
| \ _ . _|
(_|__/_(_|_\/_|_(_|
/) (\
/ ) ( \
_( (_ _ _ _) )_
(((\ \> /_> <_\ </ /)))
(\\\\ \_/ / \ \_/ ////)
\ / \ /
\ _/ \_ /
/ / \ \
/ / \ \
---------------------------------------------------------
Re: bayes_tok owner problem
Posted by Mike Burger <mb...@bubbanfriends.org>.
As what user are you running sa-learn?
On Thu, 26 Aug 2004, 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
> __
> | \ _ . _|
> (_|__/_(_|_\/_|_(_|
> /) (\
> / ) ( \
> _( (_ _ _ _) )_
> (((\ \> /_> <_\ </ /)))
> (\\\\ \_/ / \ \_/ ////)
> \ / \ /
> \ _/ \_ /
> / / \ \
> / / \ \
> ---------------------------------------------------------
>
--
Mike Burger
http://www.bubbanfriends.org
Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org
To be notified of updates to the web site, visit
http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a
message to:
site-update-request@bubbanfriends.org
with a message of:
subscribe
Re: bayes_tok owner problem
Posted by snowjack <sn...@fastmail.fm>.
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
> __
> | \ _ . _|
> (_|__/_(_|_\/_|_(_|
> /) (\
> / ) ( \
> _( (_ _ _ _) )_
> (((\ \> /_> <_\ </ /)))
> (\\\\ \_/ / \ \_/ ////)
> \ / \ /
> \ _/ \_ /
> / / \ \
> / / \ \
> ---------------------------------------------------------