[Dovecot] Double Emails
Hi all,
I originally posted this on postfix's mailing list but then realized that this COULD be a pop3 server problem since that downloads and deletes mail. This has only been happening since I upgraded from .99 to 1.0-7 ...
Our users have been reporting double messages in their inbox, as well as emails that they deleted a long time ago reappearing. The only thing in my maillog is a bunch of:
mbox sync: UID inserted in the middle of mailbox /home/sdf/mail/Level3
(6293 > 3)
Thats happening for IMAP folder and /var/mail/* mbox folders alike.
I can't seem to figure out the problem, but we have at least 50
customers calling in today alone to complain about double messages.
More are probably experiencing it and just not calling.
Any ideas?
Thanks!
-Matt
Matt Juszczak wrote:
Hi all,
I originally posted this on postfix's mailing list but then realized that this COULD be a pop3 server problem since that downloads and deletes mail. This has only been happening since I upgraded from .99 to 1.0-7 ...
Our users have been reporting double messages in their inbox, as well as emails that they deleted a long time ago reappearing. The only thing in my maillog is a bunch of:
mbox sync: UID inserted in the middle of mailbox /home/sdf/mail/Level3 (6293 > 3)
Check your UIDL definition hasn't changed (pop3_uidl_format). I think in 0.99.x it was fixed to "%v.%u", and this is the also default in 1.0. (If the UIDL values change, then the clients will download the messages again.)
See http://wiki.dovecot.org/moin.cgi/Migration and the dovecot-example.conf script for options and suggestions.
Have you seen any "UIDVALIDITY changed" messages in the logs? I guess that would regenerate the UIDLs.
Also see http://wiki.dovecot.org/moin.cgi/UpgradingDovecot
It may be your index and cache files are corrupt and need fixing (by default they're in the root mail directory, ~/mail/.imap or ~/Maildir/.imap, I think, but can be overridden with the INDEX= option).
See doc/mail-storages.txt and index.txt for details.
Timo did suggest in the release notes for test78 that they should be deleted.
Don't be put off by the ".imap" name, as they're also used by POP!
Hope this helps, Chris
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
What's your default_mail_env set to? It's probably /home/*/mail/.imap you want. Try renaming one first. And yes, it will recreate the files, but if you're using Maildir, you'll lose any custom flag names.
Chris
Matt Juszczak wrote:
Timo did suggest in the release notes for test78 that they should be deleted.
So for all our users, I should just do:
cd /home rm -rf */.imap
And it will regenerate the .imap folder automatically?
-Matt
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
I'm using the mbox format.
On Tue, 19 Jul 2005, Chris Wakelin wrote:
What's your default_mail_env set to? It's probably /home/*/mail/.imap you want. Try renaming one first. And yes, it will recreate the files, but if you're using Maildir, you'll lose any custom flag names.
Chris
Matt Juszczak wrote:
Timo did suggest in the release notes for test78 that they should be deleted.
So for all our users, I should just do:
cd /home rm -rf */.imap
And it will regenerate the .imap folder automatically?
-Matt
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
!DSPAM:42dd4db386491453614395!
On Tue, 2005-07-19 at 11:55 -0400, Matt Juszczak wrote:
Hi all,
I originally posted this on postfix's mailing list but then realized that this COULD be a pop3 server problem since that downloads and deletes mail. This has only been happening since I upgraded from .99 to 1.0-7 ...
Our users have been reporting double messages in their inbox, as well as emails that they deleted a long time ago reappearing. The only thing in my maillog is a bunch of:
mbox sync: UID inserted in the middle of mailbox /home/sdf/mail/Level3
(6293 > 3)
When that error happens, it recreates the message UIDs. Those UIDs are also used in POP3's UIDs, so if they change that could explain why the messages are downloaded again (for users who use "leave mail on server" option).
What Dovecot version do you use? 1.0-7 doesn't exist, maybe 1.0-test78?
Do you use NFS? Are there other software modifying mboxes than Dovecot and Postfix?
participants (3)
-
Chris Wakelin
-
Matt Juszczak
-
Timo Sirainen