Discussion:
[courier-users] LOGIN NO Error in IMAP command received by server.
Mustafa Hashmi
2002-02-15 07:48:05 UTC
Permalink
Hi all,

I am sure most of you have seen this error message
before, unfortunately I couldn't find a solution.

I have qmail installed and working with the Maildir
system. I sent myself a test message and see it in my
Maildir/new folder.

Courier Imap was compiled with just the following auth
module:

--with-authmysql

I made sure all other modules were disabled as this
setting suits me best.

My MySQL table is setup exactly as the example shows,
and my table entry for the testuser is as follows:

(listed by field)

id: sysadmin
crypt: <unix crypted passwd>
clear: <clear text passwd>
name: SysAdmin
uid: 1000
gid: 50
home: /
maildir: /home/sysadmin/Maildir/
quota:

I have tried changing home to /home/sysadmin & Maildir
to simply Maildir/, however, that didn't help.

The log files for mail.log show the following when I
try to connect:

-------------------------
Feb 14 21:39:34 denet2 imapd: Connection,
ip=[::ffff:127.0.0.1]
Feb 14 21:39:52 denet2 imapd: LOGOUT,
ip=[::ffff:127.0.0.1]
-------------------------

LOGOUT is the only command which appears to work.

On telnet to localhost 143, the following message
appears:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Courier-IMAP ready. Copyright 1998-2001 Double
Precision, Inc. See COPYING for distribution
information.

I have not tried the
--enable-workarounds-for-imap-client-bugs option,
however, that shouldn't really matter if I am
telneting to localhost(?)

I am running this on Debian (stable) - Courier iMAP
starts normally and the proc listing shows the
following:

25759 ? S 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.mysql
start
25763 ? S 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.mysql
start
25764 ? S 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.mysql
start
25765 ? S 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.mysql
start
25766 ? S 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.mysql
start
25767 ? S 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.mysql
start
25773 ? S 0:00
/usr/lib/courier-imap/libexec/couriertcpd -address=0
-stderrlogger=/usr/lib/courier-imap/libexec/logger
-stderrloggername=imapd -maxprocs=40 -maxperip=4
-pid=/var/run/imapd.pid -nodnslookup -noidentlookup
143 /usr/lib/courier-imap/sbin/imaplogin
/usr/lib/courier-imap/libexec/authlib/authmysql
/usr/lib/courier-imap/bin/imapd Maildir
25776 ? S 0:00
/usr/lib/courier-imap/libexec/logger imapd

I hope this isn't too long a post! :)

Any help at all would be appreciated.

Thanks all.

Regards,
Mustafa.











__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com
Anand Buddhdev
2002-02-15 08:00:07 UTC
Permalink
This post might be inappropriate. Click to display it.
Mustafa Hashmi
2002-02-15 08:13:03 UTC
Permalink
Thanks for the quick response :)

I did try that - in fact, my original message had a
log of my attempts and the error message (along with
the mail.log / mysql.log lines).

Unfortunately that doesn't work either, and the same
error message (LOGIN NO Error in IMAP command received
by server) comes up. (I also tried setting this up via
Outlook, no luck).

Is there any configuration option the server is
especially sensitive to? Are we talking about the
authmysqlrc file and the database setup?

I appreciate your help!

Thanks,
-mustafa
On Fri, Feb 15, 2002 at 01:47:01AM -0800, Mustafa
Post by Mustafa Hashmi
The log files for mail.log show the following when
I
Post by Mustafa Hashmi
-------------------------
Feb 14 21:39:34 denet2 imapd: Connection,
ip=[::ffff:127.0.0.1]
Feb 14 21:39:52 denet2 imapd: LOGOUT,
ip=[::ffff:127.0.0.1]
-------------------------
$ telnet localhost 143
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.
* OK Courier-IMAP ready. Copyright 1998-2001 Double
Precision, Inc. See COPYING for
distribution information.
. login anand password
. OK LOGIN Ok.
. logout
* BYE Courier-IMAP server shutting down
. OK LOGOUT completed
Connection closed by foreign host.
This will help you verify if your authentication is
working correctly. If
this fails, then your authentication might be
incorrectly setup.
--
Anand Buddhdev
MSI-CI Holdings BV
_______________________________________________
courier-users mailing list
https://lists.sourceforge.net/lists/listinfo/courier-users


__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com
Anand Buddhdev
2002-02-15 09:16:04 UTC
Permalink
Post by Mustafa Hashmi
Thanks for the quick response :)
I did try that - in fact, my original message had a
log of my attempts and the error message (along with
the mail.log / mysql.log lines).
Unfortunately that doesn't work either, and the same
error message (LOGIN NO Error in IMAP command received
by server) comes up. (I also tried setting this up via
Outlook, no luck).
Well, then something is wrong with your authentication. What you need to do
is stop trying with outlook (because you won't get any useful info out of
it) and start examining all your config files, along with a careful
scrutiny of all the logs. I don't use the MySQL auth mechanism, so I can't
be of more assistance there.
--
Anand Buddhdev
Mustafa Hashmi
2002-02-15 09:28:07 UTC
Permalink
Got it working! The problem was, like you said, in the
configuration files. I was going over them and
searching though previous posts - the problem was
actually white space after some variable settings :)

Lovely :)

I appreciate your help.

Are there any suggestions on a good imap client for
the web? I am looking at horde, squirrelmail and
webmail (are there anymore?) - which one would you all
recommend?

thanks again Anand!

-mustafa
On Fri, Feb 15, 2002 at 02:12:59AM -0800, Mustafa
Post by Mustafa Hashmi
Thanks for the quick response :)
I did try that - in fact, my original message had
a
Post by Mustafa Hashmi
log of my attempts and the error message (along
with
Post by Mustafa Hashmi
the mail.log / mysql.log lines).
Unfortunately that doesn't work either, and the
same
Post by Mustafa Hashmi
error message (LOGIN NO Error in IMAP command
received
Post by Mustafa Hashmi
by server) comes up. (I also tried setting this up
via
Post by Mustafa Hashmi
Outlook, no luck).
Well, then something is wrong with your
authentication. What you need to do
is stop trying with outlook (because you won't get
any useful info out of
it) and start examining all your config files, along
with a careful
scrutiny of all the logs. I don't use the MySQL auth
mechanism, so I can't
be of more assistance there.
--
Anand Buddhdev
_______________________________________________
courier-users mailing list
https://lists.sourceforge.net/lists/listinfo/courier-users


__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com
Mark Janssen
2002-02-15 10:19:13 UTC
Permalink
On Fri, 2002-02-15 at 12:27, Mustafa Hashmi wrote:
Are there any suggestions on a good imap client for
the web? I am looking at horde, squirrelmail and
webmail (are there anymore?) - which one would you all
recommend?
Erm... Courier's sqwebmail :) It works lots better then the others i've
tried.

Mark
Mark Janssen
2002-02-15 10:20:04 UTC
Permalink
On Fri, 2002-02-15 at 12:27, Mustafa Hashmi wrote:

Are there any suggestions on a good imap client for
the web? I am looking at horde, squirrelmail and
webmail (are there anymore?) - which one would you all
recommend?

Erm... Courier's sqwebmail :) It works lots better then the others i've
tried.

Mark
Aly S.P Dharshi
2002-02-15 20:13:08 UTC
Permalink
Yes SqWebmail works excellent, the idea is excellent too, we have squirrel mail and some people on campus dislike it some do like it. Plus you just use the same auth modules and similar if not same config files.

Cheers,

Aly.

Nico Wieland
2002-02-15 09:51:06 UTC
Permalink
Post by Mustafa Hashmi
Are there any suggestions on a good imap client for
the web? I am looking at horde, squirrelmail and
webmail (are there anymore?) - which one would you all
recommend?
i like squirrelmail, it works well and is easy to set up. don't know the
others though.

-nico
Mustafa Hashmi
2002-02-15 10:43:03 UTC
Permalink
thanks Nico, Mark.
Post by Mustafa Hashmi
Are there any suggestions on a good imap client
for
the web? I am looking at horde, squirrelmail and
webmail (are there anymore?) - which one would
you all
recommend?
Erm... Courier's sqwebmail :) It works lots better
then the others i've
tried.
Mark
__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com
Loading...