Article delegate-en/399 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:<_A397@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Problem connecting to wall.etl.go.jp
06 Apr 1999 14:10:27 GMT ysato@etl.go.jp (Yutaka Sato)


Hi Brian,

On 04/06/99(21:04) you Brian Truelsen <pruaqbdyi-mnhltavtynjr.ml@ml.delegate.org> wrote
in <Pine.SGI.4.10.9904061401520.50000-00000X@halsskov.mip.sdu.dk>
 |When FTP connecting to wall.etl.co.jp, I (for my part) am constantly
 |rejected with invalid password.
 |It turns out that your ringer doesn't conform to the SMTP standard (RFC822
 |I think)!
 |Your ringer connects to our mail-server with:
 |	MAIL FROM:ysato@ringer.etl.go.jp
 |where it should read
 |	MAIL FROM:<ysato@ringer.etl.go.jp>
 |Would you eventually consider changing it ?!

I found the relevant record in the log file of ftp://wall.etl.go.jp
like this:

 SMTP > 220 roskilde.mip.sdu.dk ESMTP Sendmail 8.8.8/8.8.8; Mon, 5 Apr 1999 21:28:21 +0200 (MDT)^M
 <<< HELO wall.etl.go.jp SMTP-DeleGate/5.9.1^M
 SMTP > 250 roskilde.mip.sdu.dk Hello wall.etl.go.jp [192.50.77.225], pleased to meet you^M
 <<< MAIL From: ysato@ringer.etl.go.jp^M
 SMTP > 501 ysato@ringer.etl.go.jp... illegal MAIL FROM:ysato@ringer.etl.go.jp^M
 <<< QUIT^M
 SMTP > 221 roskilde.mip.sdu.dk closing connection^M
 221 roskilde.mip.sdu.dk closing connection^M

Then I searched the log since the last month and found the similar
rejections by "illegal MAIL FROM", and all they have banner
indicating they are compliant to ESMTP.

 >ESMTP Sendmail 8.9.3/8.8.8
 >ESMTP Sendmail 8.8.6/8.8.4
 >ESMTP Sendmail 8.8.8/8.8.8
 >ESMTP ESMTP

I'm not sure if this is the intended feature of those SMTP servers,
or if mandatory or user based configuration, since for example
later versions of sendmail seem to accept "MAIL FROM: foo@bar" without
angle brackets.

Well, RFC821 (SMTP) specifies:
>           MAIL <SP> FROM:<reverse-path> <CRLF>
...
>           <reverse-path> ::= <path>
>           <path> ::= "<" [ <a-d-l> ":" ] <mailbox> ">"

Thus as you said angle brackets are necessary and only <mailbox>
without comments like allowed in RFC822 is not allowed in RFC821.

But most servers implementing of RFC821 seem to accept RFC821 like
redundant and diverse notations in MAIL and RCPT commands.
And because I was not sure if DeleGate will not pass such commented
addresses to SMTP server as is accepted from clients, putting angle
brackets around such address could be unsafe.

But anyway since RFC821 says brackets are necessary, and some
implementations strictly follow it, now I should follow it :-)
So I made a patch like enclosed and applied it to ftp://wall.etl.go.jp.

Cheers,
Yutaka
--
Yutaka Sato <ysato@etl.go.jp> http://www.etl.go.jp/~ysato/   @ @ 
Computer Science Division, Electrotechnical Laboratory      ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan            _<   >_

*** ../../delegate5.9.1/src/smtp.c	Tue Mar  9 19:22:22 1999
--- smtp.c	Tue Apr  6 22:22:01 1999
***************
*** 56,61 ****
--- 56,68 ----
  		strcpy(dp,np);
  	}
  }
+ SMTPpath(addr,path)
+ 	char *addr,*path;
+ {	char tmp[1024];
+ 
+ 	sprintf(tmp,"<%s>",addr);
+ 	strcpy(path,tmp);
+ }
  
  SMTP_lfprintf(log,tosc,fmt,a,b,c,d,e,f,g,h,i,j,k,l,m,n)
  	FILE *log,*tosc;
***************
*** 146,151 ****
--- 153,159 ----
  {	char xto[1024];
  
  	canon_mbox(to,xto);
+ 	SMTPpath(xto,xto);
  	syslog_ERROR("SMTP : %s: %s -- %s\r\n",xto,addr->al_what,to);
  	SMTP_putserv(addr->al_log,addr->al_fs,addr->al_ts,
  		addr->al_respbuf, "%s%s\r\n",addr->al_command,xto);
***************
*** 170,175 ****
--- 178,184 ----
  
  	if( from ){
  		canon_mbox(from,xfrom);
+ 		SMTPpath(xfrom,xfrom);
  		syslog_ERROR("SMTP : From: %s -- %s\r\n",xfrom,from);
  		SMTP_putserv(log,fs,ts,resp,"MAIL From: %s\r\n",xfrom);
  		if( resp[0] == '5' )

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