Andrew Mendelsohn
2006-Jan-24 22:32 UTC
[Dovecot] dovecot 1.0alpha5 not deleting messages from mbox
Hi, I have had some problem with duplicate emails using dovecot1.0alpha5using the prebuilt testing binaries on a debian stable/testing 3.1system. I am running both pop3d and imap, but all users are just usingpop3d. I am using mbox format. Users are using Thunderbird 1.5 to access emails. Dotlocks are used,postfix is the email agent. Note that dovecot/[postfix are running in avserver. In debugging the dovecot log, it seems to me that dovecot thinks thatit is deleting the messages, but actually nothing is happening. here is a log of a user logging in and what happens after logging out: dovecot: 2006-01-20 21:41:04 Info: pop3-login: Login:user=<user2@example.org>, method=PLAIN, rip=10.8.0.6,lip=192.168.99.5, TLS dovecot: 2006-01-20 21:41:04 Error: pop3(user2@example.org): mbox sync:Expunged message reappeared in mailbox /home/vmail/user2@example.org(UID 5668 < 5691, seq=2, idx_msgs=0) dovecot: 2006-01-20 21:45:33 Info: pop3(user2@example.org): Logout.top=0/0, retr=20/ del=20/20, size=29362389 a quick check show that mbox size has not been changed -- none of the20/20 files have been deleted, even though dovecot states del=20/20 ! Mboxes grow quite large, sometime the problem resolves itself. Interestingly, if I stop dovecot and restart it, on the next access to pop3 all of the messages are deleted correctly and the mboxreturns to the default size. Any ideas? Andy --------------------------------- Yahoo! Photos ? Showcase holiday pictures in hardcover Photo Books. You design it and we?ll bind it! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dovecot.org/pipermail/dovecot/attachments/20060124/b15a3c7f/attachment.html
Timo Sirainen
2006-Jan-26 22:25 UTC
[Dovecot] dovecot 1.0alpha5 not deleting messages from mbox
On Tue, 2006-01-24 at 12:32 -0800, Andrew Mendelsohn wrote:> dovecot: 2006-01-20 21:41:04 Error: pop3(user2@example.org): mbox > sync: Expunged message reappeared in > mailbox /home/vmail/user2@example.org (UID 5668 < 5691, seq=2, > idx_msgs=0)Why is this happening? This is the cause of why they're not getting expunged. You're not using NFS? Is anything else than Dovecot and Postfix accessing the mboxes? There are two possibilities. One is that X-UID header keeps changing in mboxes, and another is that Dovecot's indexes keep somehow breaking. It says that idx_msgs=0 there, so it looks like the messages have been deleted from Dovecot's index, but not from the mbox file. Or are there other errors in logs, and the above error is only Dovecot's attempt to fix the problem caused by another crash/something? That error could happen for example if Dovecot really deletes the mails, but something else copies the mbox back there :) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://dovecot.org/pipermail/dovecot/attachments/20060126/a7a027e7/attachment.pgp