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

[DeleGate-En] Re: How to disable APOP?
07 Nov 2003 06:51:47 GMT feedback@delegate.org (Yutaka Sato)


In message <_A2454@delegate-en.ML_> on 11/07/03(11:44:50)
you "Karel Fajkus" <pe4eqbdyi-mnvdjlyscrfr.ml@ml.delegate.org> wrote:
 |Every time DeleGate connects to a POP3 server it tries APOP authentication first, if it fails DeleGate then tries USER/PASS. How to disable the APOP auth part?

DeleGate tries APOP only when it is indicated APOP is available by
the server showing a time stamp for APOP in the greeting message.
If the server never accepts any APOP login, then the server should
be configured not to indicate the time stamp for APOP.
But if you cannot reconfigure the server, you need DeleGate to cope
with it.  The enclosed patch for 8.8.0-pre2 will introduce "noapop"
mount option for the purpose to be used like this:

   MOUNT="* pop://server/* noapop"

8.8.0-pre2 is at <ftp://ftp.delegate.org/pub/DeleGate/>

Cheers,
Yutaka
--
  D G 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

*** dist/delegate8.8.0-pre2/src/pop.c	Fri Oct 31 16:38:57 2003
--- src/pop.c	Fri Nov  7 15:45:23 2003
***************
*** 440,445 ****
--- 440,446 ----
  		}
  	}
  	opts = CTX_mount_url_to(Conn,NULL,"GET",userhost);
+ 	MountOptions = opts;
  	if( opts ){
  		if( checkPASS(Conn,opts,epass,seed,fc,tc,resp) != 0 )
  			return 0;
***************
*** 688,693 ****
--- 689,698 ----
  
  	strcpy(banner,resp);
  	getPOPcharange(banner,timestamp);
+ 	if( timestamp[0] && MountOptions && isinList(MountOptions,"noapop") ){
+ 		sv1log("POP ignore APOP timestamp from the server\n");
+ 		timestamp[0] = 0;
+ 	}
  
  	if( user != NULL && timestamp[0] ){
  		sprintf(resp,"+OK enter password for APOP/DeleGate: %s",

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