troxlinux wrote: > Hi list, I have a doubt that post I am training my spamassassin with > filters bayes , the amavisd-new lance the spamassassin for the spam, > but I see that inside the directory amavis, there is another directory > with the name of.spamassassin and making a debug to my spamassassin, I > see that it doesn't use that directory for the database baye ...
> /var/spool/amavis # ls -l > total 4060 > -rw------- 1 vscan vscan 837 Sep 5 16:26 .bash_history > -rw------- 1 vscan vscan 35 May 17 11:14 .lesshst > drwxr-x--- 2 vscan vscan 4096 Sep 11 14:54 .razor > drwx------ 2 vscan vscan 4096 Sep 12 19:04 .spamassassin > -rw-r----- 1 vscan vscan 0 Sep 12 19:04 amavisd.lock > -rw-r----- 1 vscan vscan 6 Sep 12 19:04 amavisd.pid > srwxr-x--- 1 vscan vscan 0 Sep 12 19:04 amavisd.sock > drwx------ 2 vscan root 4096 Sep 12 19:04 db > drw------- 6 vscan root 4096 May 17 12:35 dcc > drwxr-xr-x 20 vscan vscan 4096 May 12 20:50 dcc-1.3.103 > debug off my spamassassin > dbg: bayes: tie-ing to DB file R/O /root/.spamassassin/bayes_toks > [14061] dbg: bayes: tie-ing to DB file R/O /root/.spamassassin/bayes_seen > [14061] dbg: bayes: found bayes db version 3 > [14061] dbg: bayes: DB journal sync: last sync: 0 > [14061] dbg: config: score set 2 chosen. > when I train my spamassassin, I see that the one writes the files > inside the /root/.spamassassin, but is my doubt this which uses > amavisd-new when it throws the spamassassin? > 1. /root/.spamassassin > 2. /var/spool/amavis/.spamassassin when you train your bayes db as normal user like root then spamassassin use your home directory to store the bayes db. In your case this is /root/.spamassassin so this is correct. When you train your bayes db through amavisd then the home directory of the amavis user is used because amavisd calls spamassassin. Therefore /var/spool/amavis/.spamassassin is correct. When you would like to train the spamassassin bayes db then you should always use the amavisd user for that. Example: su amavis -c 'sa-learn --spam < spam_message' Daniel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
