[REBOL] Re: IMAP mail, anyone?
From: holger::rebol::com at: 12-Dec-2001 10:04
On Wed, Dec 12, 2001 at 01:53:51PM -0000, Cassani Mario wrote:
> Hi Rebolers,
> my dummy windozed system administrators blocked the
> pop3 access (a NTLM proxy wasn't enought...) to the
> M$ Exchange mail server.
> I am trying with IMAP, but can't even open the port:
>
> >> open imap://user:[password--the--mailserver--net]/inbox
> ** User Error: No authentication method available
> ** Near: open imap://user:[password--the--mailserver--net]/inbox
> >>
>
> what's wrong?
One of two things: either your username or password are incorrect,
or the server you are connecting to does not support any of the
official IMAP authentication standards REBOL supports (LOGIN
and CRAM-MD5), but only Microsoft-proprietary methods. To identify
the exact cause type
trace/net on
then try open the port.
Near the top of the Net-log output you should see a line such as
* OK [(some text) AUTH=CRAM-MD5 AUTH=LOGIN] hostname (some more text)
Check whether at least one of CRAM-MD5 or LOGIN is listed in the
AUTH options. If not, and if the server only supports, say,
AUTH=NTLM, then you will not be able to connect. You would have
to contact your sysadmin and ask them to enable standard authentication
protocols in the IMAP server. CRAM-MD5 is at least as secure as anything
ever coming out of Microsoft, so sysadmin really have no reason not to
allow it.
The other possibility, a wrong password, should be apparent in the
trace/net output as well, usually from a line such as
A1 NO AUTHENTICATE CRAM-MD5 failed
or
A1 NO AUTHENTICATE LOGIN failed
A potential third possibility is that your mail account has not been
set up for IMAP in general or for CRAM-MD5 yet. When switching from
POP to IMAP user accounts often have to be set up again and passwords
reentered to account for different password file formats.
> In our network there are two different domains
> but I cannot try the other domain user/password because the
> password actually contains a square bracket...
Yes, you can. Just open it using a port spec block instead of a URL,
e.g.
port: open [
scheme: 'imap
host: "imap.server.com"
user: "john"
pass: "secret"
]
--
Holger Kruse
[holger--rebol--com]