Well, just to add one more post to this thread.  I contacted Joe Brennan at
Columbia.  He let me know how he performs this check and said it would be ok
to share with the list.  Please don't ask me questions about this as he uses
Mimedefang and Sendmail, both of which I do not use.

Cudos to Joe for sharing as he does not know me from Adam and is not yet on
the SA list.

--Larry


-----Original Message-----
From: Joseph Brennan

It's done with Mimedefang, a milter program.  It gets values from
sendmail including the hostname which is empty in the case of
no reverse DNS.  Mimedefang runs the Spamassassin library to get
a SA score, and then Mimedefang can tweak the results, like adding
a testname and score for hosts with no reverse DNS.  If you use
Mimedefang I can send the perl stanza that does this.

The reason I add it to the SA score is that it is not a yes|no
question but something that tends to be more common in spam.
Some other things Mimedefang diagnoses are definite and we just
accept or reject for those rules.

I should get on the SA list actually.  All the tests we have
starting with CU_ are local mods that could be of interest.
A few are done with Mimedefang but most with SA itself.


-----Original Message-----
From: Joseph Brennan

Mimedefang code fragments:  First, in filter_begin(), do:

    # Prejudice against no rDNS
    if ($RelayHostname =~ /\[$RelayAddr\]/) {
        $SA_score_additions += 2.5;
        $SA_test_additions .= ",CU_NO_RDNS";
    }

Then in filter_end(), after Spamassassin runs, add the data to
what SA returned:

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

            # add our things
            $hits += $SA_score_additions;
            $names .= $SA_test_additions;

The score of 2.5 was tweaked down from a higher number and seems
to be about right.  That way they need several other spammy factors
to get rejected (we reject at 8.0).

Joe Brennan



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to