I'm attempting to replace UW-IMAP with Dovecot, as my UW-IMAP implementation seems to be not working very well.
Here's the problem I had with UW-IMAP:
In Horde/IMP, messages just wouldn't appear at all. If I opened up the user's IMAP box via an IMAP client, I'd get a Bogus sequence in UID fetch error.
So, now I've got Dovecot in place, and I'm getting the following error upon attempting to look at this same box:
Error in IMAP command UID: Invalid UID messageset.
Now, this user has 3 messages, each X-UID increments by one, starting at 1, so:
X-UID: 1 X-UID: 2 X-UID: 3
None of those seem out of the ordinary size wise.
I'm not sure what config information you'll need of me, as I'm new to dovecot, but any help would be appriciated.
Thanks, Curt L.
On 3/12/2007 Curt LeCaptain (lecaptainc@infinitytechnology.com) wrote:
I'm not sure what config information you'll need of me, as I'm new to dovecot, but any help would be appriciated.
dovecot -n would do for starters...
Also, any captured log output...
--
Best regards,
Charles
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Charles Marcus Sent: Monday, March 12, 2007 4:58 PM To: dovecot@dovecot.org Subject: Re: [Dovecot] Problems fetching mail
On 3/12/2007 Curt LeCaptain (lecaptainc@infinitytechnology.com) wrote:
I'm not sure what config information you'll need of me, as I'm new to dovecot, but any help would be appriciated.
dovecot -n would do for starters...
Also, any captured log output...
--
Best regards,
Charles
Dovecot -n output:
log_path: /var/log/dovecot protocols: imap pop3 listen(default): *:10143 listen(imap): *:10143 listen(pop3): *:10110 ssl_disable: yes disable_plaintext_auth: no login_dir: /usr/local/dovecot/var/run/dovecot/login login_executable(default): /usr/local/dovecot/libexec/dovecot/imap-login login_executable(imap): /usr/local/dovecot/libexec/dovecot/imap-login login_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3-login login_greeting: server.test.local Dovecot ready. first_valid_uid: 100 mail_location: mbox:~/mail:INBOX=/var/mail/%u mail_full_filesystem_access: yes mail_executable(default): /usr/local/dovecot/libexec/dovecot/imap mail_executable(imap): /usr/local/dovecot/libexec/dovecot/imap mail_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/local/dovecot/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/dovecot/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/dovecot/lib/dovecot/pop3 auth default: passdb: driver: pam args: * userdb: driver: passwd
Logging info:
dovecot: Mar 12 17:04:03 Info: imap-login: Login: user=<example>, method=PLAIN, rip=192.168.1.5, lip=192.168.1.2 dovecot: Mar 12 17:04:03 Error: IMAP(example): mbox sync: UID inserted in the middle of mailbox /var/mail/example (2366574850 > 1, seq=1, idx_msgs=3) dovecot: Mar 12 17:04:09 Error: IMAP(example): mbox sync: UID inserted in the middle of mailbox /var/mail/example (2366574855 > 1, seq=1, idx_msgs=3) dovecot: Mar 12 17:04:09 Info: IMAP(example): Disconnected: Logged out dovecot: Mar 12 17:04:51 Info: imap-login: Login: user=<example>, method=PLAIN, rip=192.168.1.5, lip=192.168.1.2 dovecot: Mar 12 17:04:57 Info: IMAP(example): Disconnected: Logged out
Here's what I'm doing when I'm using Thunderbird:
Open Tbird Type in example's password Get the error as stated before: "The current command did not succeed. The mail server responded: Error in IMAP command UID: Invalid UID messageset." And then am told there are 3 messages (which I can confirm by looking at the mail spool via less).
Version of Dovecot: 1.0rc26 SuSE Linux Enterprise Server 10 x86 Filesystem: ext3
Again, if I'm doing something wrong, absolutely happy to fix it, just need some assistance.
Curt
On Mon, 2007-03-12 at 17:10 -0500, Curt LeCaptain wrote:
dovecot: Mar 12 17:04:09 Error: IMAP(example): mbox sync: UID inserted in the middle of mailbox /var/mail/example (2366574855 > 1, seq=1, idx_msgs=3) dovecot: Mar 12 17:04:09 Error: IMAP(example): mbox sync: UID inserted in the middle of mailbox /var/mail/example (2366574855 > 1, seq=1, idx_msgs=3)
This is probably the cause of all your problems. http://wiki.dovecot.org/MboxProblems explains what it means.
Are you maybe changing the INBOX's location? For example if Dovecot sometimes accessed INBOX from /var/mail/example, and other times from ~/mail/inbox this could happen. But why it would use two different INBOXes I don't know.
Then again there still were a few mbox bugs in rc26. You could try if the upcoming rc27 fixed them. It'll be released tomorrow, or you can already get basically the same version from http://dovecot.org/nightly/dovecot-latest.tar.gz
On Tue, 2007-03-13 at 00:25 +0200, Timo Sirainen wrote:
On Mon, 2007-03-12 at 17:10 -0500, Curt LeCaptain wrote:
dovecot: Mar 12 17:04:09 Error: IMAP(example): mbox sync: UID inserted in the middle of mailbox /var/mail/example (2366574855 > 1, seq=1, idx_msgs=3) dovecot: Mar 12 17:04:09 Error: IMAP(example): mbox sync: UID inserted in the middle of mailbox /var/mail/example (2366574855 > 1, seq=1, idx_msgs=3)
Oh, and have you tried if it gets fixed simply by deleting indexes from ~/mail/.imap/ directory? That error should fix itself though.
-----Original Message----- From: Timo Sirainen [mailto:tss@iki.fi] Sent: Monday, March 12, 2007 5:26 PM To: Curt LeCaptain Cc: Dovecot Mailing List Subject: Re: [Dovecot] Problems fetching mail
On Mon, 2007-03-12 at 17:10 -0500, Curt LeCaptain wrote:
dovecot: Mar 12 17:04:09 Error: IMAP(example): mbox sync: UID inserted
in the middle of mailbox /var/mail/example (2366574855 > 1, seq=1, idx_msgs=3) dovecot: Mar 12 17:04:09 Error: IMAP(example): mbox sync: UID inserted
in the middle of mailbox /var/mail/example (2366574855 > 1, seq=1, idx_msgs=3)
This is probably the cause of all your problems. http://wiki.dovecot.org/MboxProblems explains what it means.
Are you maybe changing the INBOX's location? For example if Dovecot sometimes accessed INBOX from /var/mail/example, and other times from ~/mail/inbox this could happen. But why it would use two different INBOXes I don't know.
Then again there still were a few mbox bugs in rc26. You could try if the upcoming rc27 fixed them. It'll be released tomorrow, or you can already get basically the same version from http://dovecot.org/nightly/dovecot-latest.tar.gz
According to your other e-mail, you asked me to also remove the indexes from the ~/mail/.imap directory, I did so and this time the out of sequence error didn't happen, but the same error in Thunderbird did (Error in IMAP command UID: Invalid UID messageset."
I see a suggestion about the SMTP server and header filtering. I'm not sure I want to do this right now, but could Postfix be causing some of these issues? Might be a bit far fetched, but I'm just looking for any ideas.
On 13.3.2007, at 3.25, Curt LeCaptain wrote:
According to your other e-mail, you asked me to also remove the
indexes from the ~/mail/.imap directory, I did so and this time the out of sequence error didn't happen, but the same error in Thunderbird did (Error in IMAP command UID: Invalid UID messageset."
After deleting the .imap/ directory, remove all X-UID headers from
the mbox file. I'm guessing it contains some very high UID numbers
and Thunderbird doesn't understand them and sends negative numbers
instead (this is actually a TB bug).
If that didn't help, show me the command Thunderbird sends. Use eg.
Wireshark or rawlog (see http://dovecot.org/bugreport.html).
I see a suggestion about the SMTP server and header filtering. I'm
not sure I want to do this right now, but could Postfix be causing some of these issues? Might be a bit far fetched, but I'm just looking for
any ideas.
Originally it could have been caused by invalid X-UID headers, but
not anymore.
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Timo Sirainen Sent: Monday, March 12, 2007 8:36 PM To: Curt LeCaptain Cc: Dovecot Mailing List Subject: Re: [Dovecot] Problems fetching mail
On 13.3.2007, at 3.25, Curt LeCaptain wrote:
According to your other e-mail, you asked me to also remove the indexes from the ~/mail/.imap directory, I did so and this time the out of sequence error didn't happen, but the same error in Thunderbird did (Error in IMAP command UID: Invalid UID messageset."
After deleting the .imap/ directory, remove all X-UID headers from the mbox file. I'm guessing it contains some very high UID numbers and Thunderbird doesn't understand them and sends negative numbers instead (this is actually a TB bug).
If that didn't help, show me the command Thunderbird sends. Use eg.
Wireshark or rawlog (see http://dovecot.org/bugreport.html).I see a suggestion about the SMTP server and header filtering. I'm not sure I want to do this right now, but could Postfix be causing some of these issues? Might be a bit far fetched, but I'm just looking for any ideas.
Originally it could have been caused by invalid X-UID headers, but not anymore.
Well, this time I whipped out OE and tested via that as well - that went better, I saw all the messages, so I'm assuming the UIDs are just bad for Thunderbird - next up I'll test on IMP and see how that works.
On Mon, 2007-03-12 at 16:50 -0500, Curt LeCaptain wrote:
Here's the problem I had with UW-IMAP:
In Horde/IMP, messages just wouldn't appear at all. If I opened up the user's IMAP box via an IMAP client, I'd get a Bogus sequence in UID fetch error. .. Error in IMAP command UID: Invalid UID messageset.
I'm guessing your Horde/IMP is somehow broken and these two errors are related.
What is the IMAP command that gives this error message? You can check with eg. rawlog (http://dovecot.org/bugreport.html).
participants (3)
-
Charles Marcus
-
Curt LeCaptain
-
Timo Sirainen