Yes I am sure I see the -100 score effect, here is an example from this message posted to the list:

X-Spam-Status: No, hits=-107.0 required=5.0
        tests=1.6:AWL;
        version=3.1.0
X-Scanned-By: MIMEDefang 2.53 on 68.122.243.210

Note that it is mimedefang and not spamassassin that is writing the X-Spam-Status from the filter_end() function which I have modified.

I added my whitelist_from commands to my local.cf file which is in 
/etc/mail/spamassassin. I am sure that these
rules are being read as I have watch the startup with spamassassin -D --lint

And I have run --lint with no errors.

I know I have muddied the water a bit with mimedefang but what I do in 
filter_end() is pretty straight forward.

    my($hits, $req, $names, $report) = spam_assassin_check();

     # look at $report and take the n.n tag part out

     my $myrpt = '';

     for my $ln (split '\n', $report) {
        next unless $ln =~ /^ *(\d+\.\d+) +(\w+) /;
        $myrpt .= "$1:$2;";
     }

     # Regardless of hit or miss generate the X-Spam-Status

     action_change_header("X-Spam-Status", &build_status_line($hits, $req, 
$names, $myrpt));

The build_status_line() mimics SA's output pretty much to create multiple 
wrapped lines of 'score:rule;...'

I write this in both ham and spam emails. The $myrpt is also written to the log file. I have never seen the USER_IN_WHITELIST rule.
Here is what I see if I run spamassassin from the command line on this message 
after first doing a spamassassin -d to strip
off the headers and then doing a spamassassin <stripped-mail.eml

X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on bartonphillips.com
X-Spam-Level: X-Spam-Status: No, score=-107.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS, USER_IN_WHITELIST,USER_IN_WHITELIST_TO autolearn=unavailable version=3.1.0

But not that the score=-107.0 is the same score I get via SA run by mimedefang.
If no one here has an idea I will ask on the mimedefang list.

Thanks

Matt Kettler wrote:
Barton L. Phillips wrote:
This is a little off this post, but why don't I ever see
USER_IN_WHITELIST in my emails. I see the -100's affect in my
X-Spam-Status but I don't see the rule. I am running SpamAssassin via
mimedefang. Could that have something to do with it, or is there a
configuration option I have missed?
Hmm that seems rather odd.

Are you *sure* you're seeing the -100 score effect?

What exactly are you seeing in your X-Spam-Status?

Where did you add your whitelist commands (what file)?

Have you run "spamassassin --lint" lately?


--
----------------
Barton L. Phillips
Applied Technology Resources, Inc.
Tel: (818)652-9850
Web: http://www.applitec.com

Reply via email to