[Dovecot] Corrupted Indexes and File Permissions
Hello,
I'm using Dovecot to provide an IMAP service to a small number of users and I'm seeing two recurring errors which look like they might be related.
Environment: o FreeBSD 5.2.1 / Postfix 2.0.18 / Dovecot 0.99.10.4 o Maildir mailboxes
Problem: On logging in all the folders under the users mailbox are empty. This has happened with both MS Outlook 2000 clients as well as Squirrelmail which uses c-client. When you look at the mail log it shows errors from Dovecot about index file corruption and file permissions (see attached sample section).
I've checked the permissions on the maildir and it seems at the moment that the user has rw permssion on every file under cur, could this error be caused by an interaction between Postfix and Dovecot?
Any comments / suggestions greatly appreciated,
Dominic Marks
I've checked the permissions on the maildir and it seems at the moment that the user has rw permssion on every file under cur, could this error be caused by an interaction between Postfix and Dovecot?
Any comments / suggestions greatly appreciated,
Dominic Marks
Mar 16 01:24:22 mail imap-login: Login: someuser [192.168.0.1] Mar 16 01:24:24 mail imap(someuser): open() failed with file /raid/mail/someuser/cur/1076979223.V416I136863.silverback.example.com:2,ST: Permission denied
I assume you've checked that "someuser" owns that file.
Also check that every directory in the path is accessable to that user in the proper way. If it's NFS-mounted, the underlying mount point may have to have the correct permissions too (i.e., unmount the volume and have a look). An easy check is just to su to the "someuser" user and see if you can access the file in question.
mm
Hi Mark,
On Tuesday 16 March 2004 19:29, Mark E. Mallett wrote:
I've checked the permissions on the maildir and it seems at the moment that the user has rw permssion on every file under cur, could this error be caused by an interaction between Postfix and Dovecot?
Any comments / suggestions greatly appreciated,
Dominic Marks
Mar 16 01:24:22 mail imap-login: Login: someuser [192.168.0.1] Mar 16 01:24:24 mail imap(someuser): open() failed with file /raid/mail/someuser/cur/1076979223.V416I136863.silverback.example .com:2,ST: Permission denied
I assume you've checked that "someuser" owns that file.
Yes.
Also check that every directory in the path is accessable to that user in the proper way. If it's NFS-mounted, the underlying mount point may have to have the correct permissions too (i.e., unmount the volume and have a look). An easy check is just to su to the "someuser" user and see if you can access the file in question.
It's a local raid and the permissions are (as far as I can tell) all correct as it works for long periods perfectly, then this error occurs. Sometimes restarting Dovecot fixes it, sometimes it doesn't.
mm
I've changed my configuration to store the indexes on the raid volume and I waiting to see if this makes any difference.
Thanks,
Dominic Marks
Mar 16 01:24:24 mail imap(someuser): open() failed with file /raid/mail/someuser/cur/1076979223.V416I136863.silverback.example .com:2,ST: Permission denied
I assume you've checked that "someuser" owns that file.
Yes.
Also check that every directory in the path is accessable to that user in the proper way. If it's NFS-mounted, the underlying mount point may have to have the correct permissions too (i.e., unmount the volume and have a look). An easy check is just to su to the "someuser" user and see if you can access the file in question.
It's a local raid and the permissions are (as far as I can tell) all correct as it works for long periods perfectly, then this error occurs. Sometimes restarting Dovecot fixes it, sometimes it doesn't.
Ah. Well, I was throwing in a couple of guesses to fill the silence - the error message does say that it's a problem with the mail file, not the index, though.
mm
participants (2)
-
Dominic Marks
-
Mark E. Mallett