[Dovecot] Inbox weirdness
I recently had a system crash and my inbox became inaccessible via IMAP.
ls -ld /var/spool/mail drwxrwxr-x 2 root mail 4096 Sep 1 07:54 /var/spool/mail
ls -l /var/spool/mail/ignacio -rw-rw---- 1 ignacio mail 7222021 Sep 1 07:54 /var/spool/mail/ignacio
/usr/libexec/dovecot/imap
- PREAUTH [CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND UNSELECT IDLE CHILDREN LISTEXT LIST-SUBSCRIBED NAMESPACE] Logged in as ignacio A142 SELECT INBOX imap(ignacio): Error: open(/var/mail/ignacio.lock) failed: Permission denied imap(ignacio): Error: file_lock_dotlock() failed with mbox file /var/mail/ignacio: Permission denied imap(ignacio): Error: open(/var/mail/ignacio.lock) failed: Permission denied imap(ignacio): Error: file_lock_dotlock() failed with mbox file /var/mail/ignacio: Permission denied A142 NO Internal error occured. Refer to server log for more information. [2005-09-01 08:00:34]
rpm -q dovecot dovecot-(none):0.99.14-4.fc4.i386
System is running Fedora Core 4. SELinux is not a factor in the problem.
http://fedora.ivazquez.net/private/dovecot.conf
Thanks in advance for any help in resolving this issue.
-- Ignacio Vazquez-Abrams
On Thu, 1 Sep 2005, Ignacio Vazquez-Abrams wrote:
I recently had a system crash and my inbox became inaccessible via IMAP.
ls -ld /var/spool/mail drwxrwxr-x 2 root mail 4096 Sep 1 07:54 /var/spool/mail
ls -l /var/spool/mail/ignacio ^^^^^^^^^^^^^^^
-rw-rw---- 1 ignacio mail 7222021 Sep 1 07:54 /var/spool/mail/ignacio
imap(ignacio): Error: open(/var/mail/ignacio.lock) failed: Permission denied ^^^^^^^^^ Do you have a symlink /var/mail -> /var/spool/mail ? Did you forgot to adjust default_mail_env = ? Is dovecot running with group mail?
Bye,
-- Steffen Kaiser
On Thu, 1 Sep 2005, Steffen Kaiser wrote:
On Thu, 1 Sep 2005, Ignacio Vazquez-Abrams wrote:
I recently had a system crash and my inbox became inaccessible via IMAP.
ls -ld /var/spool/mail drwxrwxr-x 2 root mail 4096 Sep 1 07:54 /var/spool/mail
ls -l /var/spool/mail/ignacio ^^^^^^^^^^^^^^^
-rw-rw---- 1 ignacio mail 7222021 Sep 1 07:54 /var/spool/mail/ignacio
imap(ignacio): Error: open(/var/mail/ignacio.lock) failed: Permission denied ^^^^^^^^^ Do you have a symlink /var/mail -> /var/spool/mail ?
Ah, yes, it's there.
ls -l /var/mail lrwxrwxrwx 1 root root 10 Jun 23 08:11 /var/mail -> spool/mail
Did you forgot to adjust default_mail_env = ?
I didn't have a value in there before, but setting it to "mbox:~/mail/:INBOX=/var/spool/mail/%u" allowed it to show the inbox, so obviously dovecot's detection broke somehow.
Is dovecot running with group mail?
No, it's running as root.
I think I can take it from here, but if anyone has any ideas as to how to fix the detection I'm willing to listen.
-- Thanks, Ignacio Vazquez-Abrams
On Thu, 1 Sep 2005, Ignacio Vazquez-Abrams wrote:
On Thu, 1 Sep 2005, Steffen Kaiser wrote:
Did you forgot to adjust default_mail_env = ?
I didn't have a value in there before, but setting it to "mbox:~/mail/:INBOX=/var/spool/mail/%u" allowed it to show the inbox, so obviously dovecot's detection broke somehow.
I think I can take it from here, but if anyone has any ideas as to how to fix the detection I'm willing to listen.
*sigh* I spoke too soon. While I can *view* my inbox, I can't actually *change* anything in it. Any more ideas?
-- Ignacio Vazquez-Abrams
On Thu, Sep 01, 2005 at 11:11:43AM -0400, Ignacio Vazquez-Abrams wrote:
On Thu, 1 Sep 2005, Ignacio Vazquez-Abrams wrote:
On Thu, 1 Sep 2005, Steffen Kaiser wrote:
Did you forgot to adjust default_mail_env = ?
I didn't have a value in there before, but setting it to "mbox:~/mail/:INBOX=/var/spool/mail/%u" allowed it to show the inbox, so obviously dovecot's detection broke somehow.
I think I can take it from here, but if anyone has any ideas as to how to fix the detection I'm willing to listen.
*sigh* I spoke too soon. While I can *view* my inbox, I can't actually *change* anything in it. Any more ideas?
Since the error was about dotlocking.. is there a /var/mail/ignacio.lock that needs to be removed/cleaned up?
mm
On Thu, 2005-09-01 at 08:08 -0400, Ignacio Vazquez-Abrams wrote:
imap(ignacio): Error: open(/var/mail/ignacio.lock) failed: Permission denied imap(ignacio): Error: file_lock_dotlock() failed with mbox file /var/mail/ignacio: Permission denied
http://wiki.dovecot.org/moin.cgi/VarMailDotLock
Don't know why it was working before though.
On Sun, 2005-09-11 at 13:54 +0300, Timo Sirainen wrote:
On Thu, 2005-09-01 at 08:08 -0400, Ignacio Vazquez-Abrams wrote:
imap(ignacio): Error: open(/var/mail/ignacio.lock) failed: Permission denied imap(ignacio): Error: file_lock_dotlock() failed with mbox file /var/mail/ignacio: Permission denied
http://wiki.dovecot.org/moin.cgi/VarMailDotLock
Don't know why it was working before though.
Turns out that it was a SELinux problem with my distro. Sorry for not keeping the thread up-to-date.
-- Ignacio Vazquez-Abrams ivazquez@ivazquez.net http://fedora.ivazquez.net/
gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
participants (4)
-
Ignacio Vazquez-Abrams
-
Mark E. Mallett
-
Steffen Kaiser
-
Timo Sirainen