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

[DeleGate-En] Re: Problems using delegated with imap
01 Jun 2001 07:08:11 GMT feedback@delegate.org (Yutaka Sato)


Hi,

On 06/01/01(02:16) you Attilio Vaccaro <puacabdyi-ok6ijbmtffvr.ml@ml.delegate.org> wrote
in <_A1184@delegate-en.ML_> (nntp://etlibs3-be/mail-lists.delegate-en/1184):
 |The problem that we're having is that even if we set the option:
 |
 |SERVER=imap://imap.server.address
 |when the client tries to connect  passing just the username, the daemon 
 |refuses the connection (in the debug log there's written that it's 
 |expecting a login in the format "username@host").

If you could show me exact log data, it will be useful for finding
out what is the problem.

The behavior of IMAP-DeleGate bound for specific IMAP-server can
be tested like follows:

% delegated -v -P8143 SERVER=imap://imap-server

% telnet localhost 8143
x login ysato password
x logout

 1+0: (0) accepted [31] -@[127.0.0.1]localhost:1817 (0.013s)(2)
 1+0: PATH: imap://imap-server:143!localhost:8143!localhost:1817!anonymous@localhost;991378435
 1+0: ConnectToServer: DFLT=imap://imap-server:143 REAL=://:0
 1+0: ConnectToServer connected [7] {150.29.203.93:143 <- 127.0.0.1:1818} [0.001s]
 1+0: S: * OK imap-server Solstice (tm) Internet Mail Server (tm) IMAP4 service @ 2.0 - at Fri, 1 Jun 2001 15:51:02 +0900 (JST)^M
 1+0: C: x login ysato ****
 1+0: S: x OK LOGIN completed^M
 1+0: OK IMAP-LOGIN FROM -@localhost:1817 TO ysato@imap-server


A possible reason why a bound IMAP-DeleGate requires user@host
pattern is that a given hostname in SERVER is invalid:

% delegated -v -P8143 SERVER=imap://bad-hostname

 1+0: (0) accepted [17] -@[127.0.0.1]localhost:1822 (0.029s)(4)
 1+0: PATH: imap://bad-hostname:143!localhost:8143!localhost:1822!anonymous@localhost;991378954
 1+0: ConnectToServer: DFLT=imap://bad-hostname:143 REAL=://:0
 1+0: gethostbyname(bad-hostname) unknown[0.00s] 
 1+0: ConnectToServer unknown host 'bad-hostname'
 1+0: ERROR: cannot connect to imap://bad-hostname:143 - -1
 1+0: E-C: Can't connect: localhost:1822 => imap://bad-hostname (unknown)
 1+0: D: * OK localhost Proxy IMAP4 server DeleGate/7.4.0^M
 1+0: C: x login ysato ****
 1+0: D: x BAD LOGIN user@host first.^M
 1+0: NO IMAP-LOGIN FROM -@localhost:1822 TO ysato@bad-hostname

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

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