On Wed, 2007-06-13 at 16:02 +0200, Luigi Rosa wrote:
I have an installation that sometimes acts strangely:
Jun 12 11:28:00 mail dovecot: imap-login: Login: user=<nadia>, method=PLAIN, rip=10.10.10.103, lip=10.10.10.254 Jun 12 11:53:59 mail dovecot: IMAP(nadia): inotify_add_watch(/var/spool/mail/nadia/new) failed: No such file or directory Jun 12 11:53:59 mail dovecot: IMAP(nadia): stat(/var/spool/mail/nadia/new) failed: No such file or directory Jun 12 11:56:14 mail last message repeated 5 times Jun 12 11:58:14 mail last message repeated 2 times Jun 12 12:00:14 mail last message repeated 2 times Jun 12 12:02:14 mail last message repeated 2 times Jun 12 12:02:14 mail dovecot: IMAP(nadia): stat(/var/spool/mail/nadia/new) failed: No such file or directory
These pretty clearly say that the new/ directory doesn't exist. I've no idea why, but since that's the INBOX I can't think of a way Dovecot could cause this.
Jun 12 12:03:23 mail dovecot: IMAP(nadia): Disconnected: Logged out ..... Jun 13 12:08:01 mail dovecot: IMAP(nadia): unlink(/var/spool/mail/nadia/cur/:2,ST) failed: Is a directory
And here you for some reason have a "cur/:2,ST" directory. This sounds like the new/ directory was renamed to cur/:2,
Dovecot recreates the new/ directory again so this problem fixed itself the next time the mailbox was selected. Except the :2,ST directory doesn't get deleted unless you delete it manually.