[Mimedefang] SpamDrop

Jeffrey Goldberg jeffrey at goldmark.org
Wed Jul 23 18:04:00 EDT 2003


On Wed, 23 Jul 2003, David F. Skoll wrote:

> > I'm using this code, which i found in many places, to dump Spam to a
> > spamdrop, [...]

> It works for me with MD 2.35.

What works for me (in filter_end) is

      action_change_header("X-Spam-Score", "$hits ($score) $names");

      if($hits >= 7) {
          action_add_header("X-Orig-Rcpts", join(", ", @Recipients));
               foreach $recip (@Recipients) {
                    delete_recipient($recip);
               }
          add_recipient('spamreader at slauson.com');
      }
      if ($hits >= 5) {
          add_recipient('spamtrap at slauson.com');
      }

So anything with a score above 5 goes to spamtrap (for some automated
testing for open relays/proxies).  Anything with a score over 7 goes to
to a spamreader address and not the original recipients.

-j

-- 
Jeffrey Goldberg                            http://www.goldmark.org/jeff/
 Relativism is the triumph of authority over truth, convention over justice
 Hate spam?  Boycott MCI! http://www.goldmark.org/jeff/anti-spam/mci/



More information about the MIMEDefang mailing list