[Dovecot] UIDL match from 0.99.13 to 1.0-1.2
I am moving from and old FC2 system to a new RHEL5 system and am having trouble getting the UIDLs to move over right, mainly the UID.
I copy over the mailbox, and see the x-uid in the message is what it was on the old server, but when I telnet in to check pop, it rewrites x-uid in the message to something new, causing old messages to get downloaded again, which is not what we want
I have tried setting pop3_reuse_xuidl to yes, but that did not change anything, probably because that is the wrong header (I do not have x-uidl, but I do have x-uid). I do have pop3_uidl_format set to %v.%u for compatibility.
On the old system the first five are:
+OK Logged in. uidl +OK 1 1095087961.3092736 2 1095087961.3092737 3 1095087961.3092738 4 1095087961.3092739 5 1095087961.3092740
On the new system the first five are:
+OK Logged in. uidl +OK 1 1095087961.3093018 2 1095087961.3093155 3 1095087961.3093156 4 1095087961.3093157 5 1095087961.3093158
Any help would be appreciated, I do not understand how it is generating the UID portion.
Dan
On Wed, 2007-08-08 at 16:32 -0500, Daniel Davidson wrote:
I am moving from and old FC2 system to a new RHEL5 system and am having trouble getting the UIDLs to move over right, mainly the UID.
I copy over the mailbox, and see the x-uid in the message is what it was on the old server, but when I telnet in to check pop, it rewrites x-uid in the message to something new, causing old messages to get downloaded again, which is not what we want
Then there's something in those headers that causes Dovecot to decide that they're wrong and they need to be rewritten. The rules have changed a bit since 0.99.
One thing I can think of is: Does the first message have X-UID: header before X-IMAPbase: header?
Why, yes, it does. Do I need to swap them ore delete X-IMAPbase, and is there a utility to do that, or do I have to make one?
Dan
On Thu, 2007-08-09 at 12:53 +0300, Timo Sirainen wrote:
On Wed, 2007-08-08 at 16:32 -0500, Daniel Davidson wrote:
I am moving from and old FC2 system to a new RHEL5 system and am having trouble getting the UIDLs to move over right, mainly the UID.
I copy over the mailbox, and see the x-uid in the message is what it was on the old server, but when I telnet in to check pop, it rewrites x-uid in the message to something new, causing old messages to get downloaded again, which is not what we want
Then there's something in those headers that causes Dovecot to decide that they're wrong and they need to be rewritten. The rules have changed a bit since 0.99.
One thing I can think of is: Does the first message have X-UID: header before X-IMAPbase: header?
I did that and it was not able to fix things.
Additionally in my logs I get the following messages:
Dovecot v1.0.rc15 starting up
pop3-login: Login: user=<danield>, method=PLAIN, rip=::ffff:128.174.124.57, lip=::ffff:128.174.124.57, secured
POP3(danield): mbox sync: UID inserted in the middle of mailbox /var/mail/danield (3093908 > 3092736, seq=1, idx_msgs=514)
POP3(danield): mbox sync: UID inserted in the middle of mailbox /var/mail/danield (3094935 > 3092736, seq=1, idx_msgs=514)
POP3(danield): Disconnected: Logged out top=0/0, retr=0/0, del=0/514, size=4689780
Looks to me like it is looking for a higher initial uid than what it gets from the file. Where is that kept? Any other ideas?
Dan
On Thu, 2007-08-09 at 16:44 +0300, Timo Sirainen wrote:
On Thu, 2007-08-09 at 08:43 -0500, Daniel Davidson wrote:
Why, yes, it does. Do I need to swap them ore delete X-IMAPbase,
Swapping probably helps.
and is there a utility to do that, or do I have to make one?
I'm not aware of such an utility.
On Thu, 2007-08-09 at 09:00 -0500, Daniel Davidson wrote:
I did that and it was not able to fix things.
Additionally in my logs I get the following messages:
Dovecot v1.0.rc15 starting up
pop3-login: Login: user=<danield>, method=PLAIN, rip=::ffff:128.174.124.57, lip=::ffff:128.174.124.57, secured
POP3(danield): mbox sync: UID inserted in the middle of mailbox /var/mail/danield (3093908 > 3092736, seq=1, idx_msgs=514)
After doing that make sure that Dovecot's index files get deleted. Otherwise it remembers the old UIDs and logs these errors.
I blasted /home/username/mail/.imap recopied the mailbox, swapped the UID and the IMAP lines and it worked.
thanks for the help,
Dan
On Thu, 2007-08-09 at 17:19 +0300, Timo Sirainen wrote:
On Thu, 2007-08-09 at 09:00 -0500, Daniel Davidson wrote:
I did that and it was not able to fix things.
Additionally in my logs I get the following messages:
Dovecot v1.0.rc15 starting up
pop3-login: Login: user=<danield>, method=PLAIN, rip=::ffff:128.174.124.57, lip=::ffff:128.174.124.57, secured
POP3(danield): mbox sync: UID inserted in the middle of mailbox /var/mail/danield (3093908 > 3092736, seq=1, idx_msgs=514)
After doing that make sure that Dovecot's index files get deleted. Otherwise it remembers the old UIDs and logs these errors.
participants (2)
-
Daniel Davidson
-
Timo Sirainen