[Mimedefang] MD 2.30 having probs with SpamAssassin 2.50

alan premselaar alien at 12inch.com
Wed Mar 12 11:46:01 EST 2003


Paul,

 what do your log files show for the spam score (referring to the md_log
call)

your test is only testing for hits > 12, not >= 12

I use a modified version of the "linuxorg" contributed filter, and it does
these tests in filter_begin() although i'm not sure that's the problem.

my filter actually uses the syntax:

return action_bounce("message");

which will exit the subroutine at that point with the value of the
action_bounce() call.  you might want to give that a try.

alan

On 3/13/03 1:30 AM, "Paul" <freebsd at pksnet.com> wrote:

> I've looked at it from all different angles but can't seem to get it to work
> like I want to.
> 
> What I want is for the MD/SA Combo to bounce all mails SA rates 12 or higher
> and not stick on the SA report. I changed /etc/mail/mimedefang.cf accordingly
> based on the How-To page. But still, although flagged with an SA attachment
> and the ***** in the header, they get thru to the user.
> 
> Anybody able to tell me what I did wrong? (System FreeBSD 4.7) Also, although
> I have both NAI and clamav installed, mimedefang.pl -features shows both as
> missing.
> 
> Thanks in advance for your help

[snip...]

>            if ($hits > 12)
>            {
>               action_quarantine_entire_message();
>               action_bounce("Message seems to be spam, rejected");
>            }
>            # 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");
>         }
>               send_quarantine_notifications();
>       }
>   }
> 
> # DO NOT delete the next line, or Perl will complain.
> 1;
> ============================
> 
> 
> 
> 
> 
> --
> Paul
> 
> 
> 
> _______________________________________________
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
> 




More information about the MIMEDefang mailing list