How does MailScanner docide which spamassassin rules dir to use

Kai Wang kwang at ucalgary.ca
Fri Oct 20 20:11:28 IST 2006


The same here. Not sure if this is a bug of MailScanner.

$ls -alR /var/lib/spamassassin/
/var/lib/spamassassin/:
total 16
drwxr-xr-x   3 root root 4096 Oct 13 13:39 .
drwxr-xr-x  20 root root 4096 Oct 13 13:39 ..
drwxr-xr-x   7 root root 4096 Oct 19 14:11 3.001005

/var/lib/spamassassin/3.001005:
total 56
drwxr-xr-x  7 root root 4096 Oct 19 14:11 .
drwxr-xr-x  3 root root 4096 Oct 13 13:39 ..
drwxr-xr-x  2 root root 4096 Oct 19 14:02 
70_sare_adult_cf_sare_sa-update_dostech_net
-rw-r--r--  1 root root   98 Oct 19 14:02 
70_sare_adult_cf_sare_sa-update_dostech_net.cf
drwxr-xr-x  2 root root 4096 Oct 19 14:02 
70_sare_oem_cf_sare_sa-update_dostech_net
-rw-r--r--  1 root root   96 Oct 19 14:02 
70_sare_oem_cf_sare_sa-update_dostech_net.cf
drwxr-xr-x  2 root root 4096 Oct 19 14:02 
70_sare_random_cf_sare_sa-update_dostech_net
-rw-r--r--  1 root root   99 Oct 19 14:02 
70_sare_random_cf_sare_sa-update_dostech_net.cf
drwxr-xr-x  2 root root 4096 Oct 19 14:02 
70_sare_stocks_cf_sare_sa-update_dostech_net
-rw-r--r--  1 root root   99 Oct 19 14:02 
70_sare_stocks_cf_sare_sa-update_dostech_net.cf
-rw-r--r--  1 root root  201 Oct 19 14:11 sare-sa-update-channels.txt
drwxr-xr-x  2 root root 4096 Oct 13 13:39 updates_spamassassin_org
-rw-r--r--  1 root root 2195 Oct 13 13:39 updates_spamassassin_org.cf
-rw-r--r--  1 root root   43 Oct 13 13:39 updates_spamassassin_org.pre

/var/lib/spamassassin/3.001005/70_sare_adult_cf_sare_sa-update_dostech_net:
total 72
drwxr-xr-x  2 root root  4096 Oct 19 14:02 .
drwxr-xr-x  7 root root  4096 Oct 19 14:11 ..
-rw-r--r--  1 root root 53868 Oct 19 14:02 200604200900.cf
-rw-r--r--  1 root root    57 Oct 19 14:02 MIRRORED.BY

/var/lib/spamassassin/3.001005/70_sare_oem_cf_sare_sa-update_dostech_net:
total 28
drwxr-xr-x  2 root root  4096 Oct 19 14:02 .
drwxr-xr-x  7 root root  4096 Oct 19 14:11 ..
-rw-r--r--  1 root root 12739 Oct 19 14:02 200512271200.cf
-rw-r--r--  1 root root    55 Oct 19 14:02 MIRRORED.BY

/var/lib/spamassassin/3.001005/70_sare_random_cf_sare_sa-update_dostech_net:
total 32
drwxr-xr-x  2 root root  4096 Oct 19 14:02 .
drwxr-xr-x  7 root root  4096 Oct 19 14:11 ..
-rw-r--r--  1 root root 18190 Oct 19 14:02 200512121000.cf
-rw-r--r--  1 root root    58 Oct 19 14:02 MIRRORED.BY

/var/lib/spamassassin/3.001005/70_sare_stocks_cf_sare_sa-update_dostech_net:
total 76
drwxr-xr-x  2 root root  4096 Oct 19 14:02 .
drwxr-xr-x  7 root root  4096 Oct 19 14:11 ..
-rw-r--r--  1 root root 59515 Oct 19 14:02 200610182000.cf
-rw-r--r--  1 root root    58 Oct 19 14:02 MIRRORED.BY

/var/lib/spamassassin/3.001005/updates_spamassassin_org:
total 556
drwxr-xr-x  2 root root  4096 Oct 13 13:39 .
drwxr-xr-x  7 root root  4096 Oct 19 14:11 ..
-rw-r--r--  1 root root  5495 Oct 13 13:39 10_misc.cf
-rw-r--r--  1 root root  8115 Oct 13 13:39 20_advance_fee.cf
-rw-r--r--  1 root root  1605 Oct 13 13:39 20_anti_ratware.cf
-rw-r--r--  1 root root  6693 Oct 13 13:39 20_body_tests.cf
-rw-r--r--  1 root root  1537 Oct 13 13:39 20_compensate.cf
-rw-r--r--  1 root root 14290 Oct 13 13:39 20_dnsbl_tests.cf
-rw-r--r--  1 root root 15639 Oct 13 13:39 20_drugs.cf
-rw-r--r--  1 root root 11383 Oct 13 13:39 20_fake_helo_tests.cf
-rw-r--r--  1 root root 33145 Oct 13 13:39 20_head_tests.cf
-rw-r--r--  1 root root 17504 Oct 13 13:39 20_html_tests.cf
-rw-r--r--  1 root root  3320 Oct 13 13:39 20_meta_tests.cf
-rw-r--r--  1 root root  2138 Oct 13 13:39 20_net_tests.cf
-rw-r--r--  1 root root 15883 Oct 13 13:39 20_phrases.cf
-rw-r--r--  1 root root  4714 Oct 13 13:39 20_porn.cf
-rw-r--r--  1 root root 16879 Oct 13 13:39 20_ratware.cf
-rw-r--r--  1 root root  9693 Oct 13 13:39 20_uri_tests.cf
-rw-r--r--  1 root root  2231 Oct 13 13:39 23_bayes.cf
-rw-r--r--  1 root root   420 Oct 13 13:39 25_accessdb.cf
-rw-r--r--  1 root root  1345 Oct 13 13:39 25_antivirus.cf
-rw-r--r--  1 root root  9117 Oct 13 13:39 25_body_tests_es.cf
-rw-r--r--  1 root root 17676 Oct 13 13:39 25_body_tests_pl.cf
-rw-r--r--  1 root root   190 Oct 13 13:39 25_dcc.cf
-rw-r--r--  1 root root  1993 Oct 13 13:39 25_dkim.cf
-rw-r--r--  1 root root  1947 Oct 13 13:39 25_domainkeys.cf
-rw-r--r--  1 root root  2738 Oct 13 13:39 25_hashcash.cf
-rw-r--r--  1 root root   189 Oct 13 13:39 25_pyzor.cf
-rw-r--r--  1 root root  2201 Oct 13 13:39 25_razor2.cf
-rw-r--r--  1 root root  8342 Oct 13 13:39 25_replace.cf
-rw-r--r--  1 root root  2873 Oct 13 13:39 25_spf.cf
-rw-r--r--  1 root root   352 Oct 13 13:39 25_textcat.cf
-rw-r--r--  1 root root  7539 Oct 13 13:39 25_uribl.cf
-rw-r--r--  1 root root 47388 Oct 13 13:39 30_text_de.cf
-rw-r--r--  1 root root 34883 Oct 13 13:39 30_text_fr.cf
-rw-r--r--  1 root root  1670 Oct 13 13:39 30_text_it.cf
-rw-r--r--  1 root root 38211 Oct 13 13:39 30_text_nl.cf
-rw-r--r--  1 root root 30284 Oct 13 13:39 30_text_pl.cf
-rw-r--r--  1 root root  2883 Oct 13 13:39 30_text_pt_br.cf
-rw-r--r--  1 root root 33703 Oct 13 13:39 50_scores.cf
-rw-r--r--  1 root root  1116 Oct 13 13:39 60_awl.cf
-rw-r--r--  1 root root  4906 Oct 13 13:39 60_whitelist.cf
-rw-r--r--  1 root root  2370 Oct 13 13:39 60_whitelist_dkim.cf
-rw-r--r--  1 root root  3483 Oct 13 13:39 60_whitelist_spf.cf
-rw-r--r--  1 root root  1726 Oct 13 13:39 60_whitelist_subject.cf
-rw-r--r--  1 root root 11041 Oct 13 13:39 70_iadb.cf
-rw-r--r--  1 root root 12968 Oct 13 13:39 80_additional.cf
-rw-r--r--  1 root root     0 Oct 13 13:39 empty.pre
-rw-r--r--  1 root root   138 Oct 13 13:39 MIRRORED.BY

Anthony Cartmell 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/?
>
> I have this too, for 3.001003.
>
>> Did sa-update succeed?
>
> Yes.
>
>> Do you have all the rules "moved and updated"
>> to the /var/lib/spamassassin/<version> directory?
>
> Yes.
>
>> Are you sure you are
>> running version 3.1.5?
>
> Yes (well 3.1.3).
>
>> No duplicate SA install?
>
> No.
>
>> Can the user you run
>> your MTA as (and thus MailScanner ... and SA) read the files in
>> /var/lib/spamassassin/<version>?
>
> Yes.
>
>> 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;-)
>
> spamassassin reads the rules in /var/lib/spamassassin/<version> when 
> called direct, but not when called from MailScanner :(
>
> I'm using spamassassin installed by yum for Fedora Core 5. I might try 
> installing the version from MailScanner's web site...
>
> Cheers!
>
> Anthony
> --www.fonant.com - Quality web sites
> --MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>

-- 
Kai Wang
System Services
Information Technologies, University of Calgary,
2500 University Drive, N.W.,
Calgary, Alberta, Canada T2N 1N4
Phone (403) 220-2423, Fax (403) 282-9361


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list