[Mimedefang] Spam to inactive accounts

Marco Berizzi pupilla at hotmail.com
Tue Nov 12 06:43:00 EST 2002


Some time ago (2002/10/15) there were a discussion about spam to
inactive accounts.
I'm using MD 2.24 with sendmail 8.12.6 to protect my internal
M$-Exchange 5.5
When the message body contain the header "Precedence: bulk" and the
recipient doesn't exist, M$-Exchange doesn't send the NDR, so adding an
action_add_header("Precedence", "bulk") when the message is identified
as spam, may help a bit.

...
    # of the spam score clamped to a maximum of 40.
    # MUA filters can easily be written to trigger on a
    # minimum number of asterisks...
    if ($hits >= 20) {
     return action_bounce("We don't accept SPAM");
    }
    action_change_header("Subject", "***SPAM*** $Subject ($score)");
    action_change_header("X-Spam-Score", "$hits ($score) $names");
    action_add_header("Precedence", "bulk");

    # If you find the SA report useful, add it, I guess...
    action_add_part($entity, "text/plain", "-suggest",
                    "$report\n",
      "SpamAssassinReport.txt", "inline");
   } else {
   # Delete any existing X-Spam-Score header?
   action_delete_header("X-Spam-Score");
   }
...

Comments?



More information about the MIMEDefang mailing list