[Mimedefang] little changes - big troubles
hans mayer
hans.mayer at relay.bfl.at
Tue Apr 9 10:46:00 EDT 2002
hi all
just testing with sendmail 8.12.3 and mimedefang 2.6
in test environment.
setting up with standard configs works great - thanks to david, we
use md since about 1 year with success.
now changing in /etc/mail/mimedefang-filter the subroutine filter
to the following:
#****************
sub filter {
my($entity, $fname, $ext, $type) = @_;
if (re_match_ext($entity, '^\.(rtf|doc|xls)$')) {
return action_accept();
}
return action_quarantine($entity, " attachment $fname is quarantined
\n" ) ;
}
#****************
as i want only accept some extensions ( in real life is't much more )
and quarantaene all others. all others unchanged.
now (after restarting) i did send a windword document with extension
.doc
( we are using netscape ) the window didn't close. after a while an
error message opened "4.7.1 Please try again later"
in syslog i see a lot of ( about a dozen ) of this:
Apr 9 16:14:57 bfl-sg6 sm-mta[24522]: g39EEvIO024522:
from=<mimedefang at bfl-sg6.bfl.at>, size=1245, class=0, nrcpts=1,
msgid=<200204091414.g39EEv0p024521 at bfl-sg6.bfl.at>, proto=ESMTP,
daemon=MTA, relay=localhost [127.0.0.1]
and finaly several times:
Apr 9 16:15:46 bfl-sg6 sm-mta[24516]: g39EEjIO024516: Milter
(mimedefang): timeout before data read
Apr 9 16:15:46 bfl-sg6 sm-mta[24516]: g39EEjIO024516: Milter
(mimedefang): to error state
Apr 9 16:15:46 bfl-sg6 sm-mta[24516]: g39EEjIO024516: Milter: data,
reject=451 4.7.1 Please try again later
Apr 9 16:15:46 bfl-sg6 sm-mta[24516]: g39EEjIO024516:
to=<mayer at relay.bfl.at>, delay=00:01:01, pri=30351, stat=Please try
again later
also:
Apr 9 16:16:14 bfl-sg6 mimedefang[24494]: Filter did not remove
UNFINISHED file -- returning tempfail code to sendmail
in /var/spool/MIMEDefang/ ( which was empty befor ) are now several
qdir's
and also /var/spool/mqueue and /var/spool/clientmqueue was filled up.
is my "sub filter" so bad ?
any ideas why my very simple filter-routine doesn't work ?
for my understanding the changes are not very significant, but
i am not a perl guru.
maybe somebody else can test with my config ?
hoping for support of the reading group.
best reagrds
hans
--
More information about the MIMEDefang
mailing list