I use dovecot-0.99.11 from RHEL4. dovecot-mysql.conf: ==db_host = dbhost db_port = 3306 db = db db_user = dovecot db_passwd = pass default_pass_scheme = PLAIN password_query = SELECT password FROM users WHERE username = '%u' user_query = select maildir AS home,u_id AS uid,g_id AS gid from users WHERE username = '%u' == When I try "telnet localhost 110" and enter test login, I get in errorlog: ==dovecot-auth: Jun 06 07:21:49 Info: MySQL: Performing query: SELECT password FROM users WHERE username = 'andy at domain' dovecot-auth: Jun 06 07:21:49 Info: MySQL: Performing query: select maildir AS home,u_id AS uid,g_id AS gid from users WHERE username = 'andy at domain' pop3-login: Jun 06 07:21:49 Info: Login: andy at domain [::ffff:127.0.0.1] dovecot-auth: Jun 06 07:21:49 Info: Login process 9 disconnected dovecot: Jun 06 07:21:49 Fatal: chdir(/var/mail-domain/andy at domain) failed with uid 506: Not a directory dovecot: Jun 06 07:21:49 Error: child 19446 (pop3) returned error 89 == I think, dovecot use "/var/mail-domain/andy at domain" as maildir - not as mailbox. What need set in dovecot config for work with mailbox? Thanks. -- Best regards, Andrew Velikoredchanin
On Mon, 2005-06-06 at 16:26 +0400, Andrew Velikoredchanin wrote:> dovecot: Jun 06 07:21:49 Fatal: chdir(/var/mail-domain/andy at domain) > failed with uid 506: Not a directory > > I think, dovecot use "/var/mail-domain/andy at domain" as maildir - not as > mailbox. > > What need set in dovecot config for work with mailbox?Dovecot needs a directory where it can store indexes and other mailboxes with IMAP. See bottom of http://wiki.dovecot.org/MailLocation -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20050608/1776a11d/attachment-0001.bin>
Timo Sirainen wrote:> On Mon, 2005-06-06 at 16:26 +0400, Andrew Velikoredchanin wrote: > >>dovecot: Jun 06 07:21:49 Fatal: chdir(/var/mail-domain/andy at domain) >>failed with uid 506: Not a directory >> >>I think, dovecot use "/var/mail-domain/andy at domain" as maildir - not as >>mailbox. >> >>What need set in dovecot config for work with mailbox? > > > Dovecot needs a directory where it can store indexes and other mailboxes > with IMAP. See bottom of http://wiki.dovecot.org/MailLocationOK! I undestend it. But now I have other problem. My mailboxes placed on NFS dir (not root). After some time of work dovecot, this directory stay as unavalible. For example, /mnt/auto/home is NFS directory, /mnt/auto/home/nouser/spool/mail - mailbox directory. After some time I get not avalible /mnt/auto/home/nouser/spool/mail directory, but other top NFS directories (/mnt/auto/home/nouser/spool, /mnt/auto/home/nouser, ...) is good. I think, this problem in lock mailboxes. I try fcntl and dotfile lock methods, but this problem present both. :( dovecot-0.99.11-2.EL4.1 from RHEL4. -- Best regards, Andrew Velikoredchanin