[Mimedefang] Only scanning incoming messages?
Kevin O'Brien
kevino at eonline.com
Wed May 15 16:35:26 EDT 2002
Here's an example of something I did. I setup a variable to define all the
subnets that are internal to our organization (had to comment out the '.')
and then in the filter_begin function tested the relay address. In this
example, the networks: 10.0.0.0/8, 1.2.3.0/24, 11.12.13.0/24, and
21.22.23.0/24, would not be checked mimedefang. There is probably a more
elegant way using CIDR notation.
# Local networks to skip check when they are the relaying host
$LocalNetworks = '10\.|1\.2\.3|11\.12\.13|21\.22\.23';
<snip>
sub filter_begin {
$Boilerplate = "";
if ($RelayAddr =~ /^(127.0.0.1|$LocalNetworks)/o) {
action_add_header("X-Spam-Status", "Skipped, internal relay:
$RelayAddr");
return action_accept();
}
<snip>
Kevin O'Brien
Systems/Network Administrator
E! Entertainment Television
-----Original Message-----
From: Matt A. Gargett [mailto:MGargett at comshare.com]
Sent: Wednesday, May 15, 2002 1:22 PM
To: mimedefang at lists.roaringpenguin.com
Subject: [Mimedefang] Only scanning incoming messages?
Would there be a way to only scan incoming messages and not outgoing? I
would think this would reduce the overhead on the server. I was more
thinking of just not scanning messages for SPAM on the way out... If all
your email addresses had a specific look (ie, NA.Something.com) could you
exclude checking on those addresses? Is this a mimedefang thing or a SA
thing?
- Matt Gargett
IT Support
Comshare Incorporated
_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
More information about the MIMEDefang
mailing list