Article delegate-en/3694 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Sub-Process turns to a zombie when using Delegate as an SMTP proxy
04 Apr 2007 03:03:38 GMT (Yutaka Sato)
The DeleGate Project


In message <_A3679@delegate-en.ML_> on 03/26/07(21:10:36)
you "Petros Skalkos" <> wrote:
 |This is a redefinition of my problem with more details and log.
 |I'm using delegate as an SMTP proxy (to handle TLS) on Win 2000 Server using
 |the  :
 |dg9_5_3 STLS=-fcl -P25 -vd SERVER=smtp:// PERMIT=smtp:*:*
 |As you see it connects to the same server on port 2525 where ASSP (antispam
 |proxy) listens
 |It works fine, but, some times I have a dg9_5_3 sub-process that never
 |The sub-process works fine until the time it starts receiving the e-mail.
 |From that point,
 |sometimes it stops writing to the log file and stays active for ever.
 |Note that when this happens, the connection is in SSL mode (using STARTTLS)

Your log shows that it is not in SSL mode.
The STARTTLS capability is announced in the EHLO response, but is not used.

 |Some other times it starts writing the following log entry millions of times
 |generating huge log file :
 |(WIN) 25:39.921 [1984] -- SOCKET recv(22)=-1 error=10054 [0.000]
 |Do you have any idea what could cause this error and behavior?
 |03/26 14:24:28.84 [1904] 23+0: SMTP < DATA^M
 |03/26 14:24:28.84 [1904] 23+0: SMTP > 354 ok, send it; end with <CRLF>.<CRLF>^M
 |03/26 14:24:28.84 [1904] 23+0: TMPFILE(SMTP-DATA-IN) = (29) C:/Program Files/DeleGate/tmp/dg1904.2.1174908268
 |03/26 14:24:28.84 [1904] 23+0: Close-On-Exec not supported
 |03/26 14:24:28.84 [1904] 23+0: >>>TMPFILE(SMTP-DATA-IN)>>>71cce0[29]
 |* Please note that when this behavior happens, the connection has always
 |been changed to SSL (using STARTTLS)

It is not changed to SSL.
 |* After that point in most of the cases, we never hear back from the session
 |but the session remains open for ever (zombie)
 |* Sometimes the following log line appears in the log file for the session :
 |03/26 14:27:50.73 [1904] 23+0: ## SMTP unbuffering slow DATA (34310B/202s).

This can occur when the client disconnected in the middle of DATA command
and the problem is fixed in DeleGate/9.6.0-pre2 (released on March 19,
available as pub/DeleGate/alpha/bin-latest9/
You will see "NOT ended with .CRLF" in the logfile with 9.6.0-pre2 or later
on such situation.

 |* And finaly, some other times millions of the following lines appear in the
 |log for the session :
 |(WIN) 27:13.265 [1480] -- SOCKET recv(22)=-1 error=10054 [0.000]
 |(WIN) 27:13.265 [1480] -- SOCKET recv(22)=-1 error=10054 [0.000]
 |(WIN) 27:13.265 [1480] -- SOCKET recv(22)=-1 error=10054 [0.000]

The log of this process [1480] before it starts this repetition will be
helpful to see what is happening, for example to see what is this file
descriptor 22.  It is likely to be the socket for client or server but
could be of something else.

  9 9   Yutaka Sato <>
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]