Hi all,

I installed courier-imap-4.3.1 i with rpm built as vmail. Then i filed
to login (as virtual user stored in MySQL) to IMAP. Here's my maillog:

 Apr 23 08:46:42 mercury73 imapd: Connection, ip=[::ffff:203.125.189.34]
 Apr 23 08:46:42 mercury73 authdaemond: received auth request,
service=imap, authtype=login
 Apr 23 08:46:42 mercury73 authdaemond: authmysql: trying this module
 Apr 23 08:46:42 mercury73 authdaemond: SQL query: SELECT email,
passwd, clear, uid, gid, homedir, maildir, quota, name, "" FROM users
WHERE email = "[EMAIL PROTECTED]" AND (postfix = 'y')
 Apr 23 08:46:42 mercury73 authdaemond: password matches successfully
 Apr 23 08:46:42 mercury73 authdaemond: authmysql: sysusername=<null>,
sysuserid=5000, sysgroupid=5000, homedir=/opt/mail,
[EMAIL PROTECTED], fullname=Test Info,
maildir=/opt/mail/nama.domain.com/info, quota=250000000S,
options=<null>
 Apr 23 08:46:42 mercury73 authdaemond: Authenticated:
sysusername=<null>, sysuserid=5000, sysgroupid=5000,
homedir=/opt/mail, [EMAIL PROTECTED], fullname=Test Info,
maildir=/opt/mail/nama.domain.com/info, quota=250000000S,
options=<null>
 Apr 23 08:46:42 mercury73 imapd: chdir
/opt/mail/nama.domain.com/info: Permission denied

As the log said, i passed mysql authentication and the problem is the
file permission. Inside /opt/mail/ has permission *00 (700 for folders
and 600 for the files) and they're all belongs to vmail.vmail. I think
this is a standard file permission as it stated on almost courier-imap
manual / tutorial.

The question is,
1. What should i check? What's wrong?

2. Even if i give the read and write permission to the user's maildir
(and its domain), i still couldn't login to IMAP. The email client
said login failed. Strangely, there's no more "Permission denied"
error in the maillog, it's just stop until the "authdaemond:
Authenticated:". I couldn't find any clue / report from other logs
(messages, debug log). Can anyone explain the situation and the real
problem here?

3. I chat with someone in freenode. He said,

"I suspect there is a problem with the user that the imap daemon is
trying to read it as. the virtual user, perhaps the imap daemon is not
 using the correct username to do it."

Is it true? What should i check? What's the solution?

FYI, I'm using CentOS 5 and my SELinux was "Permissive". Changing it
to "Disabled" also don't help. I search the web for similar situation,
still don't find the solution. Please help me. I'm lost here.

Regards,

 Adinda P

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to