[Mimedefang] Preventing bounces for spams

David F. Skoll dfs at roaringpenguin.com
Wed Dec 3 13:00:45 EST 2003


On Wed, 3 Dec 2003, Jason M. Burnett wrote:

> > Does it?  Did you set up your Exchange box to route outgoing
> > mail through the MIMEDefang box?

> Yep.

OK, that's a help.

> I realize that would be the more elegant solution.  I'm asking if it's
> possible to do it based on the headers alone.

You could do something like this (pseudocode)

if ($Sender eq '<>' and $RelayAddr eq 'ip.of.exchange.box') {
    open(IN, "<INPUTMSG");
    while(<IN>) {
       # Check for a spam score greater than threshold by parsing lines of
       # the mail body
       if ($score > $threshold) {
           action_discard();
       }
    }
    close(IN);
}

--
David.



More information about the MIMEDefang mailing list