[Mimedefang] Still timeout errors - mail rejected
Pekka Saari
pekka.saari at sll.fi
Wed Feb 6 07:26:23 EST 2002
Hi,
I installed sendmail 8.12.2 + Mimedefang-2.3 +
Mail-SpamAssassin-2.01.tar.gz + AnomySanitizer into moderately
loaded Celeron 500MHz, 750MB.
I'm getting timeout errors even though I have in sendmail.cf:
F=T, T=S:240s;R:240s;E:5m
and init.d/sendmail (multiplexor):
MAX_SLAVES=10
MIN_SLAVES=2
BUSY_TIMEOUT=300
IDLE_TIMEOUT=300
I've already added some fixes previously suggested
on the list. Details follow, any ideas what's wrong?
I'm afraid I have to take MIMEDefang out until this
is fixed. People complain that they cannot send mail...
Pekka
Here are some typical error-seqences:
1)
Feb 6 00:03:59 www mimedefang-multiplexor: started; minSlaves=2,
maxSlaves=10, maxRequests=100, maxIdleTime=300, busyTimeout=300,
clientTimeout=10
:
Feb 6 12:56:07 www mimedefang-multiplexor:
handleSlaveReceivedAnswer(1): Timeout or error: Flag = 3
Feb 6 12:56:07 www mimedefang-multiplexor: Killing slave 1 (pid 8841):
Busy timeout
:
Feb 6 12:52:23 www sendmail[8905]: g16AqDoo008905:
from=<some.user at domain.com>, size=270177, class=0, nrcpts=1,
msgid=<blahblah at domain.com>, proto=ESMTP, daemon=MTA, relay=domain.com
[1.2.3.4]
Feb 6 12:56:25 www sendmail[8905]: g16AqDoo008905: Milter (mimedefang):
timeout before data read
Feb 6 12:56:25 www sendmail[8905]: g16AqDoo008905: Milter (mimedefang):
to error state
Feb 6 12:56:25 www sendmail[8905]: g16AqDoo008905: Milter: data,
reject=451 4.7.1 Please try again later
Feb 6 12:56:25 www sendmail[8905]: g16AqDoo008905:
to=<local.user at local.com>, delay=00:04:09, pri=32873, stat=Please try
again later
2)
Feb 6 00:03:59 www mimedefang-multiplexor: started; minSlaves=2,
maxSlaves=10, maxRequests=100, maxIdleTime=300, busyTimeout=300,
clientTimeout=10
:
Feb 6 00:29:08 www mimedefang-multiplexor: Slave 1 stderr: Use of
uninitialized value in concatenation (.) or string at
/usr/lib/perl5/5.6.1/Anomy/HTMLCleaner.pm line 620, <IN> line 1.
Feb 6 00:29:08 www mimedefang-multiplexor: Slave 1 stderr: Use of
uninitialized value in concatenation (.) or string at
/usr/lib/perl5/5.6.1/Anomy/HTMLCleaner.pm line 620, <IN> line 22.
Feb 6 00:29:08 www mimedefang-multiplexor: Slave 1 stderr: Use of
uninitialized value in concatenation (.) or string at
/usr/lib/perl5/5.6.1/Anomy/HTMLCleaner.pm line 620, <IN> line 22.
Feb 6 00:29:09 www mimedefang.pl[3609]: g15MT4oo003721: Non-multipart
entity with sub-parts??
Feb 6 00:29:09 www mimedefang-multiplexor: Slave 1 stderr: Use of
uninitialized value in concatenation (.) or string at
/usr/lib/perl5/5.6.1/Anomy/HTMLCleaner.pm line 620, <IN> line 1.
:
Feb 6 00:31:07 www sendmail[3754]: g15MV7oo003754: from=<>, size=5049,
class=0, nrcpts=1, msgid=<0GR20071EZU4XB at foo.foobar.net>, proto=ESMTP,
daemon=MTA, relay=foo.foobar.net [123.12.123.123]
Feb 6 00:31:09 www sendmail[3754]: g15MV7oo003754: Milter add: header:
X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash
mimedefang)
Feb 6 00:31:10 www sendmail[3754]: g15MV7oq003754: from=<>, size=5086,
class=0, nrcpts=1, msgid=<0GR20071LZU4XB at kamp.suomi.net>, proto=ESMTP,
daemon=MTA, relay=foo.foobar.net [123.12.123.123]
Feb 6 00:31:10 www sendmail[3754]: g15MV7oq003754: Milter (mimedefang):
select(read): Interrupted system call
Feb 6 00:31:10 www sendmail[3754]: g15MV7oq003754: Milter (mimedefang):
to error state
Feb 6 00:31:10 www sendmail[3754]: g15MV7oq003754: Milter: data,
reject=451 4.7.1 Please try again later
Feb 6 00:31:10 www sendmail[3754]: g15MV7oq003754:
to=<local.user at local.com>, delay=00:00:00, pri=30727, stat=Please try
again later
Scanning just mimedefang-multiplexor error-entries from maillog reveals
the following:
# grep multiplexor maillog | grep error
Feb 6 12:57:18 www mimedefang-multiplexor:
handleSlaveReceivedAnswer(2): Timeout or error: Flag = 3
Feb 6 12:57:26 www mimedefang-multiplexor:
handleSlaveReceivedAnswer(3): Timeout or error: Flag = 3
Feb 6 13:10:36 www mimedefang-multiplexor:
handleSlaveReceivedAnswer(1): Timeout or error: Flag = 3
Feb 6 13:36:19 www mimedefang-multiplexor:
handleSlaveReceivedAnswer(3): Timeout or error: Flag = 3
My mimedefang-filter looks like this:
$Administrator = 'xyz at foo.net';
$DaemonAddress = 'zyx at foo.net';
$Stupidity{"flatten"} = 0;
$Stupidity{"NoMultipleInlines"} = 1;
sub filter_begin {
}
sub filter {
my($entity, $fname, $ext, $type) = @_;
my($body) = $entity->bodyhandle;
if (!defined($body)) {
return action_drop_with_warning("Dropping \
empty attachment '$fname'.");
}
if (re_match_ext($entity,
'^\.(bat|chm|cmd|com|cpl|dll|eml|exe|hlp|hta|ini| \
js|lib|lnk|msi|msp|ocx|pif|reg|reg|scr|sct|shb|shs \
|sys|vbe|vbs?|vxd|wsf|wsh)$')) {
return action_quarantine($entity, "An attachment \
named $fname was\nremoved from this document as it \
constituted a security\nhazard. If you require this \
document, please contact\nthe sender and arrange \
an alternate means of receiving it.\n");
}
if ((-s "./INPUTMSG") <= (300 * 1024)) {
if (spam_assassin_is_spam()) {
action_add_header("X-Spam-Warning", "BlahBlah");
action_change_header("Subject", "*** SPAM? *** $Subject");
}
} else {
action_add_header("X-Spam-Warning", "BlahBlah");
}
if ($type eq "text/html") {
return anomy_clean_html($entity);
}
return action_accept();
}
sub defang_warning {
my($oldfname, $fname) = @_;
return
"blahblah\n" .
"'$oldfname'\n";
}
1;
And my spamassassin.cf is like this:
required_hits
10
auto_report_threshold
50
whitelist_from
www at local.net postmaster at local.net
ok_locales
en
rewrite_subject 0
report_header 1
use_terse_report 1
defang_mime 0
skip_rbl_checks 1
More information about the MIMEDefang
mailing list