[Mimedefang] [OT] SBL

EKB ekbond at gnat.net
Wed Feb 25 14:10:23 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


This adds a spamscore to the subject line and appends the original
subject to the end of the score and also adds the normal X-Spam-Score
header.  The end product produces a subject line that looks something 
like this:

Subject: [SA:*******] Re: AF, with a howl


if ($hits >= $req) {
  action_change_header("X-Spam-Score", "$hits ($score) $names");
  if ($hits >= 5) { action_change_header("Subject", "[SA:$score] $Subject"); }
  md_graphdefang_log('spam', $hits, $RelayAddr);
} else {
  action_delete_header("X-Spam-Score");
}


- -- 
EKB
Linux: Because rebooting is for adding new hardware.

On Wed, 25 Feb 2004 at 13:17 -0500, Bob Robichaud at support at compmore.net said:

> > Here's the SBL query:
> >
> > # Do some quick blackhole list checks & adjust the score accordingly
> > if (relay_is_blacklisted($RelayAddr, "sbl.spamhaus.org")) {
> > $hits += 1.5;
> > action_add_header("X-Found-DNSBL", "sbl.spamhaus.org (+1.5)
> > ".$RelayAddr);
> > md_graphdefang_log("dnsbl_hit", $RelayAddr, "sbl.spamhaus.org");
> > }
> _
> I am also currently blocking using dnsbl with sendmail.cf  I would also like
> to begin tagging emails.
> I currently tag emails for spam using action_change_header("Subject", "SPAM"
> 
> Is there a way I can have the dnsbl score added to the spam score instead of
> action_add_header, simply because our users have filters set to deal with
> the word SPAM in the subject line.  Would I have a similar rule as above
> before the spamassain rule or after. I'm guessing that if I have two
> different rules that have action_change_header they wont be combined but
> merely the last rule that applies will change the Subject Header.
> 
> Regards,
> Bob Robichaud
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAPPMidY33sSC+/BERAlfjAJ9EfMFOYJZaMHQtp6rOFzlOUoWBmACeMg2I
DIWVaT6SAF4iy5qZqX9eBak=
=XV7C
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list