Negative scores (was Re: [Mimedefang] scores displayed in $te sts)

Clayton, Nik [IT] nik.clayton at citigroup.com
Thu May 8 07:50:01 EDT 2003


> Attached are two patches from the sa-talk list.  One of them reduces 
> the magnitude of the negative rules in 50_scores.cf (though not to 
> zero), and the other adds some meta rules which check for faked 
> multiple MUA headers and the like.

Some of this requires that you be running SA 2.5x, which has support for
things like counting rule matches in meta rules.  For those of you running
2.4x, you can do something similar in a filter_end(), after calling
SpamAssassin.

E.g., 

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

    my @user_agents = ($names =~ /USER_AGENT_/g);
    if(@user_agents > 1) {
        $names .= ',TOO_MANY_UA';
        $hits += 20;
    }

which has proven to be quite effective.

N
-- 
1        1         2         3         4         5         6         7    7
         0         0         0         0         0         0         0    5
                                                    -- The 75 column-ometer
Global Messaging,                 A: Top posting
120 Cheapside, x83331             Q: What's the most annoying e-mail habit?



More information about the MIMEDefang mailing list