[Mimedefang] mimedefang letting some spams through...why?

- kd6lvw at yahoo.com
Sun Jan 31 16:43:07 EST 2010

--- On Sun, 1/31/10, Tony <tonj at freeuk.com> wrote:
> ...  My filter is here:
> http://www.zen187664.zen.co.uk/spam/mimedefang-filter-rejecting.txt

    if ($hits >= 5) {
    action_bounce("Rejected: my server thinks your email is spam.");

This section, if taken, NEVER writes a "[SPAM]" tag to the subject, nor does it write a "X-Spam-Score:" header.  This should cause an SMTP rejection if called directly from the MTA.

    action_change_header("X-Spam-Score", "$hits ($stars) $names");
    # Tag subject if over threshold
    if ($hits >= $req) {
    action_change_header("Subject", "[Spam: $hits] $Subject");

This section, assuming that "$req" is less than 5 so that the code is reached, will tag spam but LET IT PASS.

If spams are passing and not tagged, are you doing something stupid like calling MimeDefang from your mail DELIVERY agent?

More information about the MIMEDefang mailing list