[Dovecot] Corrupted index file w/Procmail in FC2
Hello:
We have a Fedora Core 2 (FC2) server with Dovecot and Procmail. Versions are:
dovecot-0.99.13-4.FC2 procmail-3.22-13
We use "maildir" below home directory like: /users/operaciones/epezoa/maildir, where "epezoa" is my account.
If I receive an e-mail, is stored at "new" folder. When I try to get e-mail from server, message is transfered from "new" folder to "cur" folder, but I can't see my e-mail and Dovecot generates a "Corrupted index file" in log file:
Feb 8 14:02:34 dlp1 pop3(epezoa): Corrupted index file /users/operaciones/epezoa/maildir/.INBOX/.imap.index: index.next_uid (14836) > uid_rec.uid (14825)
But, If I receive another e-mail (at "new" folder) and I try to get messages, I get both.
My clients are Mozilla (with "pop3") and Squirrel (from another server with "imaps"). Both have same behavior, so I think client is not involved in this problem.
MTA is Postfix, but all accounts works well, except who use Procmail.
I read about locking in Procmail and Dovecot and I think locking may produce this problem, but I can't find what's wrong. I upgraded dovecot from dovecot-0.99.10-5 to try fix this.
Thanks in advance,
Edgardo Pezoa
On Tue, 2005-02-08 at 14:42 -0300, Edgardo Pezoa wrote:
dovecot-0.99.13-4.FC2 procmail-3.22-13 .. Feb 8 14:02:34 dlp1 pop3(epezoa): Corrupted index file /users/operaciones/epezoa/maildir/.INBOX/.imap.index: index.next_uid (14836) > uid_rec.uid (14825)
What do your maildir filenames look like?
"Timo Sirainen" escribió el 09-02-2005 16:23:
On Tue, 2005-02-08 at 14:42 -0300, Edgardo Pezoa wrote:
dovecot-0.99.13-4.FC2 procmail-3.22-13
..
Feb 8 14:02:34 dlp1 pop3(epezoa): Corrupted index file /users/operaciones/epezoa/maildir/.INBOX/.imap.index: index.next_uid (14836) > uid_rec.uid (14825)
What do your maildir filenames look like?
At "new": msg.1zwE msg.2zwE
After Mozilla checks inbox they are moved to "cur" as: msg.1zwE:2, msg.2zwE:2,
In this case, checks fails because logs shows corrupted index file.
Edgardo
On Wed, 2005-02-09 at 16:34 -0300, Edgardo Pezoa wrote:
Feb 8 14:02:34 dlp1 pop3(epezoa): Corrupted index file /users/operaciones/epezoa/maildir/.INBOX/.imap.index: index.next_uid (14836) > uid_rec.uid (14825)
What do your maildir filenames look like?
At "new": msg.1zwE msg.2zwE
Thought so. These aren't maildir filenames. You've configured Procmail to generate MH style (IIRC) filenames. The difference is that with maildir the filenames are always unique, but with MH the same filename is reused after it's once deleted.
"Timo Sirainen" escribió el 09-02-2005 16:37:
On Wed, 2005-02-09 at 16:34 -0300, Edgardo Pezoa wrote:
Feb 8 14:02:34 dlp1 pop3(epezoa): Corrupted index file /users/operaciones/epezoa/maildir/.INBOX/.imap.index: index.next_uid (14836) > uid_rec.uid (14825)
What do your maildir filenames look like?
At "new": msg.1zwE msg.2zwE
Thought so. These aren't maildir filenames. You've configured Procmail to generate MH style (IIRC) filenames. The difference is that with maildir the filenames are always unique, but with MH the same filename is reused after it's once deleted.
Yes! was Procmail configuration. Thanks for your support.
For who has same problem: because I have maildir at home directory, I set ".procmailrc" file at my home directory as:
DEFAULT=./maildir/new
so messages get "new" directory after procmail filter, but in MH style filenames. Now I changed to:
DEFAULT=./maildir/
and all works fine. Take care, end "/" means "this directory is presumed to be a maildir folder" as man procmailrc says. That's the key :-)
Best regards,
Edgardo Pezoa Ingeniería de Sistemas epezoa@safp.cl
participants (2)
-
Edgardo Pezoa
-
Timo Sirainen