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

[DeleGate-En] Re: Java Mail API won't work with delegate 7.9.4 Authoriser....
11 Nov 2002 09:22:40 GMT feedback@delegate.org (Yutaka Sato)


On 11/11/02(14:45) you y.sato@delegate.org (Yutaka Sato) wrote
in <_A1968@delegate-en.ML_>
 |On 11/11/02(14:35) you "Brandon Kho" <pamdqbdyi-mnvdjl4acrfr.ml@ml.delegate.org> wrote
 |in <_A1967@delegate-en.ML_>
 | |Glad to hear from you so soon. We managed to have the Java Mail client
 | |work with Argosoft Mail Server which support SMTP authentication as
 | |well.
 |
 |Could you show me the debugging output of JavaMail in both case?

I suppose a possible reason of the problem is that the format of
response of DeleGate to EHLO command from client is not the one
which JavaMail expects (when used with SERVER=smtp://server),
therefore JavaMail does not recognize that the server is requesting
authorization.
If so, the enclosed patch (for src/smtp.c of DeleGate/8.0.9) might
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
Do the more with the less -- B. Fuller

*** ../../delegate8.0.9/src/smtp.c	Wed Sep 25 05:44:26 2002
--- smtp.c	Mon Nov 11 17:59:47 2002
***************
*** 1110,1116 ****
--- 1110,1125 ----
  			continue;
  		if( respforEHLO ){
  			respforEHLO = 0;
+ 			{
+ 			char myhost[256],clhost[256];
+ 			getClientHostPort(Conn,clhost);
+ 			ClientIF_name(Conn,FromC,myhost);
+ 			getFQDN(myhost,myhost);
+ 			fprintf(tc,"250-%s Hello %s (%s)\r\n",
+ 				myhost,arg,clhost);
+ 			}
  			fprintf(tc,"250-AUTH PLAIN LOGIN\r\n");
+ 			fprintf(tc,"250-AUTH=PLAIN LOGIN\r\n");
  			if( (rcode = SMTP_relay_stat(fs,tc,stat)) < 0 )
  				break;
  			continue;

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