At 04:32 PM 3/30/2001 -0800, sophie wrote:
>While testing Imap, imtest -m login -p imap localhost
>I get failure :prot layer failure
>In the archives, it looks like it is a common occurance....I could not
>find a response on how to deal with that...any
>suggestions...Thanks...Sophie


prot = protection  ie authentication

-m login tells imtest to use the login (plain text) authentication 
mechanism (-m).  login is not shown as one of the auth mechanisms on the S: 
* CAPABILITY line

If you get the error:
C: C01 CAPABILITY
failure: prot layer failure

I found the error message was because the imap port (143) was in use.
Check by running netstat -t -l and looking for imap or imap2 under local
address.
Edit /etc/inetd.conf and comment the imap entry.
Run killall -HUP inetd to hang up the imap daemon process.

The Cyrus imap daemon process is started by /usr/cyrus/bin/master &

If you get the error after entering a password  it could be because the 
login mechanism is not available.
To get around it I compiled sasl with --enable-login  for testing.

If you use a stronger authentication eg Digest-MD5  and login is not 
enabled then dont test with -m login, use -m mech where mech  is one of the 
AUTH=mech  mechanisms on the S: * CAPABILITY line.



Hope this helps.

Mark Sweney




Reply via email to