Thanks Sam and others  for your help.
Now I have courier-imap installed and have /usr/lib/courier/libexec/authlib/authdaemond.mysql , courierd, imapd all running. but I couldn't authenticate any user. I am not even sure how to get the user added to the mysql db. I just inserted one row to the passwd table.
 
mysql> describe passwd ;
+-----------------+------------------+------+-----+---------+-------+
| Field           | Type             | Null | Key | Default | Extra |
+-----------------+------------------+------+-----+---------+-------+
| id              | char(128)        |      | MUL |         |       |
| crypt         | char(128)        |      |     |         |       |
| clear         | char(128)        |      |     |         |       |
| name        | char(128)        |      |     |         |       |
| uid            | int(10) unsigned |      |     | 65534   |       |
| gid            | int(10) unsigned |      |     | 65534   |       |
| home        | char(255)        |      |     |         |       |
| maildir         | char(255)        |      |     |         |       |
| defaultdelivery | char(255)        |      |     |         |       |
| quota           | char(255)        |      |     |         |       |
+-----------------+------------------+------+-----+---------+-------+
 
mysql> insert into passwd (id, clear, name, uid, gid) values (1,x'xxxx','prince',101,100) ;
 
telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc.  See COPYING for distribution information.
login prince xxxxx
login NO Error in IMAP command received by server.
quit
quit NO Error in IMAP command received by server.
Connection closed by foreign host.
 
I have edited /usr/lib/courier/etc/authmysqlrc and made changes to point to the maildb. I have created the table "passwd" in this table as described in README.authmysql.html
 
Can anyone help me what is needed to be done to make the courier-imap work with mysql?.

Sam Varshavchik <mrsam@courier-mta.com> wrote:
Prince writes:

> See, I have the zlibs installed. Now, what am I missing?
>
> % rpm -qa | grep zlib
> zlib-1.1.4-8

You're missing zlib-devel.



> ATTACHMENT part 2 application/pgp-signature


Do you Yahoo!?
Yahoo! Photos - Get your photo on the big screen in Times Square