[Mimedefang] cannot install mimedefang

Jason Bertoch jason at electronet.net
Mon Jan 18 09:16:59 EST 2010


> -----Original Message-----
> From: Tony [mailto:tonj at freeuk.com]
> Sent: Friday, January 15, 2010 6:57 PM
> To: jason at electronet.net
> Subject: Re: [Mimedefang] cannot install mimdefang
> 
> 
> I'm given to understand that mimedefang will enable me to reject spam
> email during the smtp process so next I have to work out how that's
> done. If you can give any advice on this that would be appreciated.
> thanks again for that url.

Please keep list traffic on the list.

The default filter installed with MIMEDefang only tags messages over the
"required_score" value in sa-mimedefang.cf.  To change that behavior, you'll
need to modify the filter.  Common practice is to tag above one threshold and
reject above another.  The section of your filter to look at is below:


    # Spam checks if SpamAssassin is installed
    if ($Features{"SpamAssassin"}) {
        if (-s "./INPUTMSG" < 100*1024) {
            # Only scan messages smaller than 100kB.  Larger messages
            # are extremely unlikely to be spam, and SpamAssassin is
            # dreadfully slow on very large messages.
            my($hits, $req, $names, $report) = spam_assassin_check();
            my($score);
            if ($hits < 40) {
                $score = "*" x int($hits);
            } else {
                $score = "*" x 40;


To reject above 10, modify the filter as so:

# Spam checks if SpamAssassin is installed
    if ($Features{"SpamAssassin"}) {
        if (-s "./INPUTMSG" < 100*1024) {
            # Only scan messages smaller than 100kB.  Larger messages
            # are extremely unlikely to be spam, and SpamAssassin is
            # dreadfully slow on very large messages.
            my($hits, $req, $names, $report) = spam_assassin_check();
            my($score);

            if ($hits >= 10) {
				md_graphdefang_log('spam', $hits, $RelayAddr);
                        action_bounce('Message appears to be Spam.');
                            }
            else {

            if ($hits < 40) {
                $score = "*" x int($hits);
            } else {
                $score = "*" x 40;


Jason A. Bertoch
Network Administrator
jason at electronet.net
Electronet Broadband Communications
3411 Capital Medical Blvd.
Tallahassee, FL 32308
(V) 850.222.0229 (F) 850.222.8771



More information about the MIMEDefang mailing list