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

[DeleGate-En] Re: Tunnel for LDAP and POP3S
13 Jul 2007 18:29:00 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Martin,

In message <_A3795@delegate-en.ML_> on 07/13/07(23:48:49) I wrote:
 |In message <_A3793@delegate-en.ML_> on 07/10/07(20:49:16)
 |you Martin Vetter <p2ehabdyi-7pkjwodhwjfr.ml@ml.delegate.org> wrote:
 | |(2) POP3S forwarding hangs?
 | |
 | |first I start:
 | |delegated -f -v -P10995 SERVER="pop3s:-:{*:995}" RELIABLE=localhost  
 | |STLS=mitm
 |
 |So far, STLS=mitm has been implemented just for HTTPS/SSL.  So you
 |need to specify it as follows for other protocols:
 |
 |  FCL=sslway FSV=sslway

I'll make it (STLS=mitm for POP3S) be "supported" in the next release
(9.6.3-pre2) with the modification as the enclosed patch.

 |And the condition attached to your SERVER parameter seems never true
 |and it should be simply as this:
 |
 |  SERVER=pop3s

With the patch it'll work like your original configuration as this:

  % delegated -fv -P10995 SERVER=pop3s STLS=mitm

Also I supported "USER name@host..port" to represent "USER name@host:port"
since there are clients which do not accept ":" in user-name, including
fechmail :)

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.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


*** /Users/yutaka/dist/src/delegate9.6.3-pre1/src/pop.c	Fri Nov  3 10:31:31 2006
--- src/pop.c	Sat Jul 14 03:18:04 2007
***************
*** 446,451 ****
--- 446,458 ----
  	if( dp = strrchr(userhost,'@') ){
  		QStrncpy(user,userhost,dp-userhost+1);
  		wordScan(dp+1,hostport);
+ 		if( (dp = strstr(hostport,"..")) && isdigits(dp+2) ){
+ 			strsubst(QVStr(dp,hostport),"..",":");
+ 		}
+ 		if( streq(CLNT_PROTO,"pop3s") && (ClientFlags & PF_MITM_DO) ){
+ 			strcpy(proto,"pop3s");
+ 			ServerFlags |= (PF_SSL_IMPLICIT | PF_STLS_DO);
+ 		}
  		if( dp = strrpbrk(user,POP_USERHOST_ESCDELIM) )
  			*(char*)dp = '@'; /*QA(OW)*/
  		sprintf(userhost,"//%s/%s",hostport,user);

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