[Dovecot] FreeBSD 5.4/Dovecot 1.0.b3: lots of error messages
Hi!
I installed Dovecot from the FreeBSD port. I have about 20 users on this machine and used popper before switching.
I get a lot of error messages like:
dovecot: Mar 21 10:03:41 Error: pop3(xxx): mbox sync: UID inserted in the middle of mailbox /var/mail/xxx (37326 > 35874, seq=1, idx_msgs=26)
dovecot: Mar 21 10:06:17 Error: imap(yyy): mbox sync: UID inserted in the middle of mailbox /var/mail/yyy (37352 > 36945, seq=1, idx_msgs=2)
dovecot: Mar 21 10:06:18 Error: imap(yyy): kevent(1) in io_loop_handle_add() failed: Bad file descriptor
dovecot: Mar 21 10:06:18 Error: imap(yyy): kevent(1) in io_loop_handle_remove failed: Bad file descriptor
dovecot: Mar 21 10:06:22 Error: imap(yyy): mbox sync: UID inserted in the middle of mailbox /var/mail/yyy (37354 > 36945, seq=1, idx_msgs=205)
Most of the errors are the mbox sync messages. The users report that they get all mails double, triple and more... I think this is connected to the UID problem.
My config file looks like that:
protocols = imap imaps pop3 disable_plaintext_auth = no log_path = /var/log/dovecot.err info_log_path = /var/log/dovecot.info log_timestamp = "%b %d %H:%M:%S " login_process_size = 64 verbose_proctitle = yes first_valid_gid = 0 mail_extra_groups = mail default_mail_env = mbox:/var/mail/%u protocol imap { imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep }
protocol pop3 { login_executable = /usr/local/libexec/dovecot/pop3-login mail_executable = /usr/local/libexec/dovecot/pop3 pop3_uidl_format = %08Xu%08Xv pop3_client_workarounds = outlook-no-nuls oe-ns-eoh }
auth default { mechanisms = plain passdb pam { } userdb passwd { } user = root } plugin { }
Any ideas?
Grüße aus Hohenlohe,
Martin Jangowski
| Martin Jangowski E-Mail: Martin@Jangowski.de| | Netzwerke und Multimedia | | Voice: +49 7946/940790 Fax: +49 7946/940791 | | Snail Mail: Von-Olnhausen Str. 4 74626 Bretzfeld Germany |
On Tue, 2006-03-21 at 10:22 +0100, Martin Jangowski wrote:
dovecot: Mar 21 10:03:41 Error: pop3(xxx): mbox sync: UID inserted in the middle of mailbox /var/mail/xxx (37326 > 35874, seq=1, idx_msgs=26)
These mean that X-UID header in the mbox file don't match what Dovecot was expecting to see based on its indexes. This shouldn't be happening unless the mboxes keep changing in very unexpected ways, for example if the mails are rearranged inside the file or if eg. older version of the mbox is restored from backups, or something similar.
Is anything else than Dovecot touching those mbox files?
dovecot: Mar 21 10:06:18 Error: imap(yyy): kevent(1) in io_loop_handle_add() failed: Bad file descriptor
I've fixed a couple of these since beta3. They don't cause any problems though.
On Sat, 25 Mar 2006, Timo Sirainen wrote:
On Tue, 2006-03-21 at 10:22 +0100, Martin Jangowski wrote:
dovecot: Mar 21 10:03:41 Error: pop3(xxx): mbox sync: UID inserted in the middle of mailbox /var/mail/xxx (37326 > 35874, seq=1, idx_msgs=26)
These mean that X-UID header in the mbox file don't match what Dovecot was expecting to see based on its indexes. This shouldn't be happening unless the mboxes keep changing in very unexpected ways, for example if the mails are rearranged inside the file or if eg. older version of the mbox is restored from backups, or something similar.
Is anything else than Dovecot touching those mbox files?
No, but I have several users using the same mailboxes concurrently.
I fixed the problem (at least I'v got no more error messages):
- move away from "virtual" users (give each its own UID and homedir)
- mmap_disable = yes
- lock_method = dotlock
- default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u
Grüße aus Hohenlohe,
Martin Jangowski
| Martin Jangowski E-Mail: Martin@Jangowski.de| | Netzwerke und Multimedia | | Voice: +49 7946/940790 Fax: +49 7946/940791 | | Snail Mail: Von-Olnhausen Str. 4 74626 Bretzfeld Germany |
participants (2)
-
Martin Jangowski
-
Timo Sirainen