How does MailScanner docide which spamassassin rules dir to use

Glenn Steen glenn.steen at gmail.com
Fri Oct 20 18:53:34 IST 2006


On 20/10/06, Kai Wang <kwang at ucalgary.ca> wrote:
>
> I run MailScanner 4.55.10-3 and spamassassin 3.1.5-1. I enabled
> sa-update. But I found MailScanner still uses "/usr/share/spamassassin",
> NOT "/var/lib/spamassassin/3.001005/", for default spamassassin rules
> dir. What should I change to let user /var/lib/spamassassin/3.001005/?
>
> SpamAssassin Auto Whitelist = no
> SpamAssassin Timeout = 75
> SpamAssassin Timeouts History = 30
> SpamAssassin Cache Database File =
> /var/spool/MailScanner/incoming/SpamAssassin.cache.db
> SpamAssassin User State Dir =
> SpamAssassin Install Prefix =
> SpamAssassin Site Rules Dir = /etc/mail/spamassassin
> SpamAssassin Local Rules Dir =
> SpamAssassin Local State Dir = /var/lib
> SpamAssassin Default Rules Dir =
> SpamAssassin Cache Timings = 1800,300,10800,172800,600
>
> $ ls -l /etc/mail/spamassassin
> total 28
> -rw-r--r--  1 root root  948 Sep 26 10:33 init.pre
> -rw-r--r--  1 root root 1208 Sep 26 10:33 local.cf
> lrwxrwxrwx  1 root root   41 Sep 25 10:59 mailscanner.cf ->
> /etc/MailScanner/spam.assassin.prefs.conf
> drwx------  2 root root 4096 Oct 19 14:02 sa-update-keys
> -rw-r--r--  1 root root 2179 Sep 26 10:23 v310.pre
> -rw-r--r--  1 root root 2179 Sep 26 10:33 v310.pre.rpmnew
> -rw-r--r--  1 root root  806 Sep 26 10:23 v312.pre
> -rw-r--r--  1 root root  806 Sep 26 10:33 v312.pre.rpmnew
>
> Thanks
>
Did sa-update succeed? Do you have all the rules "moved and updated"
to the /var/lib/spamassassin/<version> directory? Are you sure you are
running version 3.1.5? No duplicate SA install? Can the user you run
your MTA as (and thus MailScanner ... and SA) read the files in
/var/lib/spamassassin/<version>?

Short answer "it should work" isn't much help, but perhaps you can
find a bit more info from the above questions:-). As a stopgap thing
you could set the Default Rules Dir option, but it's probably better
to try deduce why it isn't working as intended;-)

-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list