[Dovecot] no such file or directory
I successfully installed dovecot 0.99.10 on a fedora box using postfix 2.0.11 and when I try to connect using my mozilla mail client I get the following error in the maillog...
Jan 7 18:52:16 www1 imap(arnoldc): utime() failed with index file /home/arnoldc/Maildir/.INBOX/.imap.index: No such file or directory
As you can see I'm using maildirs located in the home directories. Here is a copy of my dovecot.conf and I've removed all the commented out lines to save space...
protocols = imap imap_listen = * ssl_disable = yes login_dir = /var/run/dovecot-login login = imap default_mail_env = maildir:~/Maildir client_workarounds = oe6-fetch-no-newmail outlook-idle mbox_locks = fcntl auth = default auth_mechanisms = plain auth_userdb = passwd auth_passdb = shadow auth_user = root auth_verbose = yes
Also, I created the maildir manually and placed a copy in my /etc/skel so that all new users receive a copy. Here is the structure and permissions from the home directory...
ll drwx------ 5 arnoldc arnoldc 4096 Jan 7 18:33 Maildir
ll Maildir/ drwx------ 2 arnoldc arnoldc 4096 Jan 7 18:33 cur drwx------ 2 arnoldc arnoldc 4096 Jan 7 18:33 new drwx------ 2 arnoldc arnoldc 4096 Jan 7 18:33 tmp
Any help would be appreciated!
Arnold
On Thu, 2004-01-08 at 02:12, Arnold Cano wrote:
I successfully installed dovecot 0.99.10 on a fedora box using postfix 2.0.11 and when I try to connect using my mozilla mail client I get the following error in the maillog...
Jan 7 18:52:16 www1 imap(arnoldc): utime() failed with index file /home/arnoldc/Maildir/.INBOX/.imap.index: No such file or directory
You must have somehow deleted it. When opening INBOX, Dovecot creates the .INBOX/ directory and .imap.index under it. That error message comes when it's unexpectedly lost. I can't really think of reasons why, unless you manually did it..
Timo Sirainen wrote:
On Thu, 2004-01-08 at 02:12, Arnold Cano wrote:
I successfully installed dovecot 0.99.10 on a fedora box using postfix 2.0.11 and when I try to connect using my mozilla mail client I get the following error in the maillog...
Jan 7 18:52:16 www1 imap(arnoldc): utime() failed with index file /home/arnoldc/Maildir/.INBOX/.imap.index: No such file or directory
You must have somehow deleted it. When opening INBOX, Dovecot creates the .INBOX/ directory and .imap.index under it. That error message comes when it's unexpectedly lost. I can't really think of reasons why, unless you manually did it..
I'm not intentionally deleting anything. Could it be that the file or directory is never getting created? Is there something else I can try? Do the permissions of the maildir or parent folders matter? I thought that since dovecot runs in root (unless chrooted) that couldn't be it but I'm out of ideas.
I tried telneting into the server with no success either...
telnet mail.mcmservice.com imap Trying 216.110.65.253... Connected to mail.mcmservice.com. Escape character is '^]'.
- OK dovecot ready. LOGIN arnoldc ******** LOGIN BAD Error in IMAP command received by server.
Arnold
On Thu, 2004-01-08 at 18:13, Arnold Cano wrote:
Jan 7 18:52:16 www1 imap(arnoldc): utime() failed with index file /home/arnoldc/Maildir/.INBOX/.imap.index: No such file or directory .. I'm not intentionally deleting anything. Could it be that the file or directory is never getting created?
I don't think so.. It should have failed earlier then.
Is there something else I can try?
Does the .INBOX/ directory exist there? Is there anything under it? What if you create them manually? Or if there is something, try deleting it? Is there anything else in logs?
Do the permissions of the maildir or parent folders matter? I thought that since dovecot runs in root (unless chrooted) that couldn't be it but I'm out of ideas.
No, Dovecot uses several processes and only one or two of them run as root. The imap process which actually handles the mailboxes runs as the user who logged in.
I tried telneting into the server with no success either...
- OK dovecot ready. LOGIN arnoldc ******** LOGIN BAD Error in IMAP command received by server.
IMAP wants a tag before each command. So use "1 login" or something.
You could also try running the imap binary directly:
/usr/local/libexec/dovecot/imap 1 select inbox
and see if it gives the same error messages.
participants (2)
-
Arnold Cano
-
Timo Sirainen