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@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@domain' pop3-login: Jun 06 07:21:49 Info: Login: andy@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@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@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@domain) failed with uid 506: Not a directory
I think, dovecot use "/var/mail-domain/andy@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
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@domain) failed with uid 506: Not a directory
I think, dovecot use "/var/mail-domain/andy@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
OK! 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
On Wed, 2005-06-08 at 22:12 +0400, Andrew Velikoredchanin wrote:
Dovecot needs a directory where it can store indexes and other mailboxes with IMAP. See bottom of http://wiki.dovecot.org/MailLocation
OK! 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.
I don't really understand what you mean by "not available", but in any case with 0.99.x you must not store indexes in NFS as that won't work. You'd have to disable them completely by appending :INDEX=MEMORY to default_mail_env setting.
participants (2)
-
Andrew Velikoredchanin
-
Timo Sirainen