Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5509 - courier-imap refuses login
Summary: courier-imap refuses login
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-24 10:23 UTC by Johannes Krause
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Krause 2002-07-24 10:23:46 UTC
'telnet localhost 143':
...
* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.  See COPYING
for distribution information.
LOGIN username password
LOGIN NO Error in IMAP command received by server.
...

additional information: postfix is mta, mail delivery works, uw-imap worked
before I unmerged it and merged courier-imap. I could not find the error in the
configuration.
The installation notes say "You MUST run the configure script as normal user,
not root", maybe this is the problem?
(http://www.inter7.com/courierimap/INSTALL.html)
Comment 1 Grant Goodyear (RETIRED) gentoo-dev 2002-07-24 11:06:33 UTC
We pass a flag so that ./configure can be run as root.  
What shows up in your system logs when you try to
log in?
Comment 2 Johannes Krause 2002-07-24 14:13:18 UTC
only this:

Jul 24 20:50:58 [imapd] Connection, ip=[::ffff:127.0.0.1]
Jul 24 20:51:40 [imapd] DISCONNECTED, ip=[::ffff:127.0.0.1], headers=0, body=0
Comment 3 Nick Hadaway 2002-07-25 18:27:09 UTC
I will be adding courier-imap-1.5.1 to portage in the next couple of days.

At first glance in the log, it looks like you are using ipv6 addresses... 

Anyway... check this line in your /etc/courier-imap/authdaemonrc file...

authmodulelist="authcustom authcram authuserdb authldap authpam"

That is the default setting... but it may not work for you... I would suggest
tseting by authenticating to shadow... if you need instructions on how to set up
this file further please let me know.

-nick
Comment 4 Nick Hadaway 2002-08-03 15:50:13 UTC
courier-imap-1.5.1 has been added to portage.  Added support for unicode 
searching, and proper listening to the ipv6 use variable.  Let me know if this 
fixes your problem.
Comment 5 Nick Hadaway 2002-08-13 16:20:28 UTC
Can anyone verify that they have a working installation of courier-imap-1.5.1?
Comment 6 Jacob Perkins 2002-08-14 11:34:10 UTC
I've got a working install of courier-imap-1.5.1. Postfix is my mta too. I had 
problems with authdaemon refusing login too, but I changed authdaemonrc 
to 'authmodulelist="authpam"', and it works fine now. By the way, how would 
authmysql work, since I have a mysql db and would like to integrate it has much 
as possible
Comment 7 Nick Hadaway 2002-08-14 15:32:09 UTC
authmysql authenticates against a list of mail accounts stored in an external 
MySQL database. The /etc/courier-imap/authmysqlrc configuration file defines 
the particular details regarding the MySQL database and the schema of the mail 
account list table.

cd /etc/courier-imap
cp authmysqlrc.dist authmysqlrc
nano authmysqlrc