[Mimedefang] MIMEDefang 2.16 vs. SpamAssassin 2.31

Sidney Markowitz sidney at sidney.com
Tue Aug 6 20:14:00 EDT 2002


"Tony Nugent" <tony at linuxworks.com.au> wrote:
>  So I also need to stop filtering local email
> for spam checks, only incoming.

I did that by adding a test for the ip addresses from which I allow relaying
(the local network behind my firewall and another outside class C ip address
block  that I also send mail from) as follows. This is in filter_end(), and
I inserted the lines that test $RelayAddr. Note that if you have other
criteria besides ip address that you use to allow relaying you have to
figure out something else that you can test for here. I've replaced the
actual ip addreses with NNs. Putting the test here nicely leaves the virus
check in place for outgoing mail.

    # No sense doing any extra work
    return if message_rejected();
        # Don't do spam processing of outgoing messages
        return if ($RelayAddr =~ "^NNN\.NNN\.NNN\.");
        return if ($RelayAddr =~ "^NNN\.NNN\.NNN\.");

    # Spam checks if SpamAssassin is installed
    if ($Features{"SpamAssassin"}) {


 -- sidney





More information about the MIMEDefang mailing list