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

[DeleGate-En] Re: ESMTP problems
23 Mar 2002 15:32:26 GMT feedback@delegate.org (Yutaka Sato)


Hi,

Thank you for your redirecting the message to this open place.

On 03/23/02(23:54) you Johann Loferer <peidabdyi-fa3r2xotsrfr.ml@ml.delegate.org> wrote
in <_A1570@delegate-en.ML_>
 |Delegate as SMTP-Proxy works just fine - but some MTAs seem to have problems 
 |concerning the ESMTP implementation. I've tested versions 7.9.1 and 7.5.4. 
 | 
 |Delegate delivers an empty 250 line causing errors.
 |
 |Whenever the remote MTA gets the empty line without any additional ESMTP 
 |commands it's just waiting and finally a time out occurs. 

As I wrote shortly in the private reply message to you, the multiline
response message generated by DeleGate for EHLO was not compliant to
the specification of SMTP (RFC2821).

The RFC <URL:http://www.ietf.org/rfc/rfc2821.txt> defines:

>     ehlo-ok-rsp  =    ( "250"    domain [ SP ehlo-greet ] CRLF )
>                  / (    "250-"   domain [ SP ehlo-greet ] CRLF
>                      *( "250-"   ehlo-line                CRLF )
>                         "250"    SP ehlo-line             CRLF )

Thus the response message of DeleGate,

  250-me Hello you (you)^M
  250^M

is syntactically illegal. So I'll change it like follows:

  250-me Hello you (you)^M
  250 XECHO^M

The enclosed patch for src/smtp.c make the modification.  I hope it
will solve the problem.

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan

*** ../delegate7.9.2/src/smtp.c	Wed Nov  7 12:49:09 2001
--- smtp.c	Sun Mar 24 00:09:08 2002
***************
*** 885,891 ****
  			if( SMTP_doauth ){
  				lfprintf(log,tc,"250-AUTH PLAIN LOGIN\r\n");
  			}
! 			lfprintf(log,tc,"250\r\n");
  		}else
  		if( strcaseeq(com,"AUTH") ){
  			if( SMTP_AUTH(Conn,log,fc,tc,arg) == 0 )
--- 885,891 ----
  			if( SMTP_doauth ){
  				lfprintf(log,tc,"250-AUTH PLAIN LOGIN\r\n");
  			}
! 			lfprintf(log,tc,"250 XECHO\r\n");
  		}else
  		if( strcaseeq(com,"AUTH") ){
  			if( SMTP_AUTH(Conn,log,fc,tc,arg) == 0 )

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