On [Tue, 27.04. 08:32], Davide Libenzi wrote:
> On Tue, 27 Apr 2004, Goesta Smekal wrote:
> 
> > Hello list,
> >   I'm puzzled. Since I updated from XMail 1.9 to 1.18 (for obvious reasons ;-)
> > there are strange things going on:
> > 
> >   Local users complain about SMTP timeout messages from their MUAs at no 
> > apperant reason. When they try to send the same message a little later it
> > works ok.
> > 
> >   Server is idle most of the time (system load about 0.06). (I also watched
> > during SMTP connection errors) Those connections don't show up in the logs.
> > 
> > We have 100 users and about 1500 messages per day. Attachments are checked by
> > my MailScan script, which also did the same before the trouble started (so: NO!
> > my script is not to blame).
> 
> There's a difference though. If you're using the filter as SMTP one, it is 
> on-line during the SMTP transaction. While before it was not. Are you sure 
> guys that all those filters are reentrant?
> 
I'm afraid, one of us is missing something here. As for me, I am not sure, what
you mean by 'reentrant' filters.

  My filter is in place for about two years now with great results (350 viri
per day nowadays). And I did notice the changes in v1.14, 1.16 and changed my
code accordingly. Let me explain what it does (in brief):

<perl pseudo code> (note, syntax is _not_ strict ;-) )

$Status=0
open (FH, @@FILE)
while (<FH>){
  parse message and save base64 encoded files
}
if ($files) { invoke AV }
if ($virus) {
  re-read message and wirte all except for infected attachment to tempfile
  $Status=7
  mv tempfile @@FILE
}
exit $Status

</perl pseudo code>

  Well, this stuff works pretty nice even after updating to v1.18. One point
I might have mistaken is, that I put the filter in _both_ filters.in.tab and
filters.out.tab. But on second thought, if I don't want local folks send
stuff to the Net this seems quite ok. (?)

  Again, weather client SMTP connections are accepted or not doesn't seem to 
depend upon my script being actve at the same time or not. I even started 15
SMTP threads to cover this. Didn't help either. Mx commandline lokks like:

XMAIL_CMD_LINE="-PX 10 -SX 15 -Qn 10 -Ln 5 -Mr 24 -Pl -Sl -Ll -Fl -Cl -Ql"

  I will try to get a clue if the TCP handshake takes place at all but this is
a bit tricky since I can't reproduce the problem as I like. It just seems to 
occure frequently enough to annoy users :-P ...

  I'll kepp you up to date if something changes ... till then, any help is
very welcome

  Thanks so far !

  Goesta

-- 
Wiener Hilfswerk - EDV
1072 Wien, Schottenfeldgasse 29
Tel: 512 36 61 DW 407 / Fax 512 36 61 33

-- Attached file included as plaintext by Ecartis --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iQEVAwUBQI9IJ+EKFiIqAG4fAQJ/ewf+JyBmne+Zj6bGEb0UOADPfHv+/dyt7j8W
I19bc3iH37yZYtpHQzhb8I9YUIJW6THvw+KtMo+5bqXlXvlsbP2XLnPpkCZr1WBe
ngeXX6vziDMgrBYKJGeOI+KwBYogyypuGMeDY0p+3pHqcKEhBqGGy433CdcciFg2
b/GKPUc2HJphoGUv50Bdxv+tn8RDykAgGmArRKXwCvU7X4nVszrU1ONIzP5h3EST
lxIZGJGseeqF5DpM9WfyYMpxXjaw3rGdtOCoRAZJRaiRDMdbW8s7t1uqXiV+Qg9c
2BrbF87jhtrjAbyV52kDGoiDrLXXRiBoigG8fY+6h/LjeEW7F3w8xA==
=21Ks
-----END PGP SIGNATURE-----


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to