[Mimedefang] Calling Spamassassin on outgoing only

McWhirter,Julia julia.mcwhirter at superh.com
Thu Feb 19 10:09:45 EST 2004


Justin King (15/5/2002) thanks this worked found it in the archives

I define globally

$LocalRelayAddrs{"10.1.2.3"} = 1;
$LocalRelayAddrs{"10.1.2.4"} = 1;
$LocalRelayAddrs{"10.1.2.5"}  = 1;

then have

sub filter_begin {

    ...

    #New spam check, let's us record hitcount and optionally the report
    if ((-s "./INPUTMSG") <= (100 * 1024) and $Features{"SpamAssassin"}
and
!(exists $LocalRelayAddrs{$RelayAddr})) {
        ...
    }
}



It would probably be better to use an array and grep, but this way
popped
into my head first.

-Justin

Regards
Julia McWhirter
IT Manager
 
SuperH (UK) Ltd
First Floor 
Network House
2410 Aztec West
Almondbury
Bristol
BS32 4QX
 
Tel : 01454 465600
Tel (Direct) : 01454 465661
Tel (Mobile) : 07979 913494
Fax : 01454 465601
Email : julia.mcwhirter at superh.com
www : www.superh.com
 

-----Original Message-----
From: mimedefang-bounces at lists.roaringpenguin.com
[mailto:mimedefang-bounces at lists.roaringpenguin.com] On Behalf Of
McWhirter,Julia
Sent: 19 February 2004 14:35
To: mimedefang at lists.roaringpenguin.com
Subject: [Mimedefang] Calling Spamassassin on outgoing only

Has anyone successfully stopped spamassassin being called on outgoing
messages?

Regards
Julia McWhirter
IT Manager
 
SuperH (UK) Ltd
First Floor 
Network House
2410 Aztec West
Almondbury
Bristol
BS32 4QX
 
Tel : 01454 465600
Tel (Direct) : 01454 465661
Tel (Mobile) : 07979 913494
Fax : 01454 465601
Email : julia.mcwhirter at superh.com
www : www.superh.com
 


_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang



More information about the MIMEDefang mailing list