<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY><!-- Converted from text/plain format -->
<P><FONT size=2><FONT face=Tahoma>I was trying to configure postfix, mysql with
dovecot. The postfix part is fine, but dovecot seems cannot cannot read the mail
directory<BR><BR>dovecot: Apr 09 16:22:37 Info: Dovecot starting
up<BR>dovecot-auth: Apr 09 16:22:38 Info: MySQL: connected to
localhost<BR>dovecot-auth: Apr 09 16:22:38 Info: Login process 7
connected<BR>dovecot-auth: Apr 09 16:22:38 Info: Login process 8
connected<BR>dovecot-auth: Apr 09 16:22:38 Info: Login process 7 sent handshake:
PID 13875<BR>dovecot-auth: Apr 09 16:22:38 Info: Login process 8 sent handshake:
PID 13878<BR>dovecot-auth: Apr 09 16:22:38 Info: Login process 9
connected<BR>dovecot-auth: Apr 09 16:22:38 Info: Login process 9 sent handshake:
PID 13876<BR>dovecot-auth: Apr 09 16:23:11 Info: MySQL: Performing query: SELECT
clear FROM postfix_users WHERE user='chris'<BR>dovecot-auth: Apr 09 16:23:11
Info: MySQL: Performing query: SELECT concat('/var/spool/mail/', maildir) AS
mail, uid, gid FROM postfix_users WHERE user='chris'<BR></FONT><FONT
face=Tahoma><STRONG>imap(chris): Apr 09 16:23:11 Error: mbox: Can't create root
IMAP folder /mail: Permission denied<BR>imap(chris): Apr 09 16:23:11 Fatal:
Failed to create storage with data:
/var/spool/mail/mydomain.com/chris/Maildir</STRONG><BR>imap-login: Apr 09
16:23:11 Info: Login: chris [::ffff:192.168.1.2]<BR>dovecot-auth: Apr 09
16:23:11 Info: Login process 9 disconnected<BR>dovecot: Apr 09 16:23:11 Error:
child 13879 (imap) returned error 89<BR>dovecot-auth: Apr 09 16:23:11 Info:
Login process 9 connected<BR>dovecot-auth: Apr 09 16:23:11 Info: Login process 9
sent handshake: PID 13880<BR><BR><BR>The file status in the mail folder. The uid
and gid of vmail is 1004<BR><BR>[root@bluemountain chris]# ls
/var/spool/mail/mydomain.com/chris/ -l<BR>total 16<BR>-rwx------ 1 vmail
vmail 11382 Apr 9 00:51 Maildir<BR><BR><BR>Here's my mysql
data<BR><BR>mysql> select * from
postfix_users;<BR>+----+----------------------+-------+-------+------+------+------+--------------------------------+------------------------------+-------+--------+---------+-------+<BR>|
id |
email
| clear | crypt | name | uid | gid |
homedir
|
maildir
| quota | access | postfix | user
|<BR>+----+----------------------+-------+-------+------+------+------+--------------------------------+------------------------------+-------+--------+---------+-------+<BR>|
1 | chris@mydomain.com | pass |
| | 1004 | 1004 | /var/spool/mail/mydomain.com |
mydomain.com/chris/Maildir | |
Y | Y | chris
|<BR>+----+----------------------+-------+-------+------+------+------+--------------------------------+------------------------------+-------+--------+---------+-------+<BR>1
row in set (0.00 sec)</FONT></FONT><FONT face=Tahoma> </FONT></P></BODY></HTML>