Thanks to all for your answers. Peter: >you will always have to restart amavisd before it reads in any rules. yes, i do this with the following alias alias sendmail-start-all="(/usr/sbin/sendmail -C/etc/mail/sendmail-rx.cf -L sm-mta-rx -bd -qp && /usr/sbin/sendmail -L sm-mta-tx -bd -q15m && /usr/local/sbin/amavisd start)"
>I have a very similar setup and it works well for me. However I did not >symlink the files, but copied them to /var/amavis/.spamassassin/user_prefs Not working too Daniel: >> SpamAssassin 3.0.6 (2005-12-07) >That's really old... Lots of new features in 3.1.x, not the least is >which is sa-update (new rules provided periodically). That's the version shipped with RHEL4 :( , I retrieved the last rpm version from http://dag.wieers.com but cannot install it (conflicts). Jakob: >You can check what rules spamassassin loads using >spamassassin --debug --lint . >Take care that you run this command as users amavis(or vscan) an nor as >root, i.e. do a >su - amavis There's a nologin in the /etc/passwd for the amavis' shell # su - amavis # id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),5(tty),6(disk),10(wheel),48(apache),1002(yawtb),1502(spamm) I change it to bash, su - amavis (now it's ok) and there is no errors reported by spamassassin --lint -D. Rules seem to be loaded, for example: debug: config: read file /usr/share/spamassassin/70_sare_stocks.cf debug: using "/etc/mail/spamassassin" for site rules dir Mark: # amavisd debug-sa Argument "1,all" isn't numeric in numeric gt (>) at /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin.pm line 245. debug: SpamAssassin version 3.0.6 ... debug: config: read file /usr/share/spamassassin/70_sare_stocks.cf ... debug: using "/etc/mail/spamassassin" for site rules dir debug: config: read file /etc/mail/spamassassin/local.cf debug: using "/var/lib/amavis/.spamassassin/user_prefs" for user prefs file debug: config: read file /var/lib/amavis/.spamassassin/user_prefs ... OK, finally I get it working by changing my alias to alias sendmail-start-all="'(/usr/sbin/sendmail -C/etc/mail/sendmail-rx.cf -L sm-mta-rx -bd -qp && /usr/sbin/sendmail -L sm-mta-tx -bd -q15m && (/usr/local/sbin/amavisd start | /usr/local/sbin/amavisd reload))" that correclty (re)starts amavis All is fine now; sorry, Vincent On 11/13/06, Gary V <[EMAIL PROTECTED]> wrote: > Jakob wrote: > > >>> > >>>I've modified the /etc/mail/spamassassin/local.cf to include new rules > >>>(SARE from rulesemporium) and new scores for the Bayes test. > >>> > >>>Although these rules are used by the spamd daemon launched from > >>>procmail rules, they are not used by amavis. It causes the following > >>>problem: > >>> > >>> > > You can check what rules spamassassin loads using > > > spamassassin --debug --lint . > > > Take care that you run this command as users amavis(or vscan) an nor as > > root, i.e. do a > > > su - amavis > > > before. Then you will see what files it tries to read. Exactly the same > > stuff will be read when amavis uses spamassassin. > > > Hope this helps, > > JC > > I have seen occasionally where this could give wrong result for > site rules dir. Stop amavisd and run it in debug-sa mode, look for > > [11992] dbg: config: using "/etc/spamassassin" for site rules dir > or > [11997] dbg: config: read file /etc/spamassassin/local.cf > > This will tell you what amavisd is using. > > Gary V > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > AMaViS-user mailing list > AMaViS-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/amavis-user > AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 > AMaViS-HowTos:http://www.amavis.org/howto/ > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/