[Mimedefang] Filter did not create RESULTS file
Justin Shore
listuser at numbnuts.net
Sun Jun 8 13:30:58 EDT 2003
On Wed, 4 Jun 2003, Joseph Brennan wrote:
> <tcratz at exchange.jcis.net> wrote:
>
> > Jun 3 13:45:16 newmail mimedefang[17880]: h53KjGg3006565: Could not
> > create /var/spool/MIMEDefang/mdefang-h53KjGg3006565/HEADERS: Too many
> > open files
>
>
> Make sure your filter has a close() for every open(). Check for
> any case that would 'return' and skip a close() statement. Since
> each perl process handles up to 500 messages (default), it could
> accumulate a lot of needless open filehandles.
Joseph,
You brought up something that caught my attention. I've added a few
return 0 statements to my mimedefang-filter at various times to skip a
test or two. For example I added a return 0 at the beginning of sub
filter_bad_filename to bypass the attachment extension checks on one box.
sub filter_bad_filename ($) {
# Disabled extension checks by returning immediately.
# Uncomment to stop using te bad filename check.
#return 0;
I also return 0 after a relay IP check in $Features{"SpamAssassin"}.
# Spam checks if SpamAssassin is installed
if ($Features{"SpamAssassin"}) {
# List local IPs that you DO NOT want MD to run SA checks on
if ($RelayAddr ne "65.66.95.178" and
$RelayAddr eq "127.0.0.1" or
$RelayAddr =~ /^65\.66\.95\.176/ or
$RelayAddr =~ /^65\.66\.95\.177/ or
$RelayAddr =~ /^65\.66\.95\.178/ or
$RelayAddr =~ /^65\.66\.95\.179/ or
$RelayAddr =~ /^65\.66\.95\.180/
) {
# Disabled extension checks by returning immediately.
# This will return the message to Sendmail with an OK if one of
the above netblocks is matched.
return 0;
} else {
Does what you say above have an effect on my use of return in
mimedefang-filter?
Thanks
Justin
PS==> It looks like I'm getting MD mailing list mail again so the week of
temp failing is wearing off. Woohoo!
More information about the MIMEDefang
mailing list