Hi, I am having some problems with false-positives and
want to know why spamassassin is giving the rating it
gives.

In order to achieve that, I added the rule:

add_header all Scores _TESTSSCORES(,)_

To my config file.
When that didn't work, I found out that many other
things in that config file didn't work either; most
specifically -- any 'add_header' and 'rewrite_header Subject  
[SA-score:_SCORE()_]'
does not work.

The config *is* processed however: required_hits and
the whitelist_from in it are working.

Moreover, I get the following results for the following commands:

(I am using fedora core 3, and spamassassin-3.0.3-3.fc3)

jolan:/etc/mail/spamassassin>spamassassin --lint
jolan:/etc/mail/spamassassin>

(No errors or warnings)

jolan:/etc/mail/spamassassin>spamassassin --lint --debug 2>&1 | grep 'config:'
debug: config: read file /etc/mail/spamassassin/init.pre
debug: config: read file /usr/share/spamassassin/10_misc.cf
debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/share/spamassassin/20_compensate.cf
debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/share/spamassassin/20_drugs.cf
debug: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/share/spamassassin/20_phrases.cf
debug: config: read file /usr/share/spamassassin/20_porn.cf
debug: config: read file /usr/share/spamassassin/20_ratware.cf
debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/share/spamassassin/23_bayes.cf
debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/share/spamassassin/25_spf.cf
debug: config: read file /usr/share/spamassassin/25_uribl.cf
debug: config: read file /usr/share/spamassassin/30_text_de.cf
debug: config: read file /usr/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/share/spamassassin/50_scores.cf
debug: config: read file /usr/share/spamassassin/60_whitelist.cf
debug: config: read file /etc/mail/spamassassin/20_head_tests.cf
debug: config: read file /etc/mail/spamassassin/20_phrases_tests.cf
debug: config: read file /etc/mail/spamassassin/backhair.cf
debug: config: read file /etc/mail/spamassassin/local.cf
debug: config: read file /etc/mail/spamassassin/popcorn.cf
debug: config: read file /etc/mail/spamassassin/weed.cf
debug: config: read file /etc/mail/spamassassin/zz_local.cf
debug: config: read file /root/.spamassassin/user_prefs
jolan:/etc/mail/spamassassin>

Note that '/root/.spamassassin/user_prefs' is empty (everything
is commented out) and '/etc/mail/spamassassin/zz_local.cf'
is the config file that I am using in order to try to change
the markup.

The markup that I *do* get is just this:

In ham:

X-Spam-Status: No, hits=-1.1 required=4.0

And in spam:

X-Spam-Status: Yes, hits=7.4 required=4.0
X-Spam-Level: +++++++

There is no way I can seem to change this!

I am running spamassassin on the firewall (which then passes it on
to an internal machine).  It has running:

jolan:/etc/mail/spamassassin>ps aux | grep spam
nobody   26571  0.4 21.4 31564 27264 ?       Ss   16:48   0:09 /usr/bin/spamd 
--daemonize --max-children 4 --username=nobody
nobody   26583  1.0 22.9 33380 29172 ?       S    16:49   0:22 spamd child
nobody   26584  0.6 22.5 32772 28588 ?       S    16:49   0:14 spamd child
nobody   26585  0.8 23.1 33556 29364 ?       S    16:49   0:18 spamd child
nobody   26586  1.0 23.5 34188 29896 ?       S    16:49   0:22 spamd child
root     28268  0.0  0.1  1484  152 pts/36   R+   17:33   0:00 grep spam

jolan:/etc/mail/spamassassin>rpm -qf /usr/bin/spamd
spamassassin-3.0.3-3.fc3

spamd is started as: spamd -d -c -m5 -H
as far as I can see, though :/

I am using qmail, which uses qmail-scanner, which uses
/usr/bin/spamc (/usr/bin/qmail-scanner-queue.pl contains:

my $spamc_binary='/usr/bin/spamc';
my $spamc_options=' -c -f';

And note that,

jolan:/etc/mail/spamassassin>rpm -qf /usr/bin/spamc
spamassassin-3.0.3-3.fc3


It seems that /usr/bin/qmail-scanner-queue.pl is
responsible for the addition of the X-Spam-Status
and X-Spam-Level header... it contains:

    print QMQ " Processed in $elapsed_time secs); $findate\n";
    print QMQ "X-Spam-Status: $sa_comment\n" if ($sa_comment ne "");
    print QMQ "X-Spam-Level: $sa_level\n" if ($sa_level ne "");

which is what I see back in my mail.
It even removes other 'X-Spam-Status:' and 'X-Spam-Level:'
lines, but it shouldn't touch a 'X-Spam-Scores:' header line?!

jolan:/etc/mail/spamassassin>grep -n 'X-Spam' /usr/bin/qmail-scanner-queue.pl
1236:    print QMQ "X-Spam-Status: $sa_comment\n" if ($sa_comment ne "");
1237:    print QMQ "X-Spam-Level: $sa_level\n" if ($sa_level ne "");
1253:   #remove any X-Spam-Status/Level IFF we've set a SA value ourselves
1254:   if (($sa_comment ne "" && /^X-Spam-Status:/i) || ($sa_level ne "" && 
/^X-Spam-Level:/i) ) {
1629:      #X-Spam-Checker-Version: SpamAssassin 2.01
2168:   #X-Spam-Status: No, hits=2.8 required=5.0
2169:   if (/^X-Spam-Status: (Yes|No), hits=(-?[\d\.]*) required=([\d\.]*)/) {


Can someone please tell me how it is possible that the
'add_header' config lines in /etc/mail/spamassassin/zz_local.cf
have no effect?

-- 
Carlo Wood <[EMAIL PROTECTED]>

Reply via email to