Ralf Hildebrandt
2007-Aug-09 13:19 UTC
[Dovecot] courier-dovecot-migrate.pl destroyed my indices... still recovering...
I tried to disable courier-pop3 today in favour of dovecot pop3. Prior to that I ran: find /home -maxdepth 1 -type d | xargs --replace /usr/local/scripts/courier-dovecot-migrate.pl --overwrite --recursive --convert {} ( /home is hashed two levels deep: /home/a/a/aanton/Maildir/ ) After that, I got lots of errors like: Aug 9 13:02:40 postamt dovecot: IMAP(azenclu): Maildir /home/a/z/azenclu/Maildir sync: UIDVALIDITY changed (1167827929 -> 1058881980) Aug 9 13:03:46 postamt dovecot: POP3(bbuhse): Couldn't init INBOX: BUG: Unknown internal error Aug 9 13:03:46 postamt dovecot: POP3(bbuhse): Mailbox init failed top=0/0, retr=0/0, del=0/0, size=0 Aug 9 13:04:14 postamt dovecot: IMAP(bkusma): Maildir /home/b/k/bkusma/Maildir sync: UIDVALIDITY changed (1179153053 -> 1174292827) Aug 9 13:04:19 postamt dovecot: IMAP(am02): Corrupted index cache file /home/a/m/am02/Maildir/dovecot.index.cache: indexid changed Aug 9 13:04:28 postamt deliver(avolz): Corrupted index cache file /home/a/v/avolz/Maildir/dovecot.index.cache: indexid changed Aug 9 13:04:51 postamt dovecot: IMAP(ck05): Maildir /home/c/k/ck05/Maildir sync: UIDVALIDITY changed (1167893115 -> 1094733247) Aug 9 13:05:11 postamt deliver(agundlfi): Corrupted index cache file /home/a/g/agundlfi/Maildir/dovecot.index.cache: indexid changed Aug 9 13:05:50 postamt dovecot: IMAP(asorigue): Corrupted index cache file /home/a/s/asorigue/Maildir/dovecot.index.cache: indexid changed Aug 9 13:06:04 postamt dovecot: IMAP(azenclu): Corrupted index cache file /home/a/z/azenclu/Maildir/dovecot.index.cache: indexid changed Aug 9 13:06:08 postamt dovecot: IMAP(coneck): Maildir /home/c/o/coneck/Maildir sync: UIDVALIDITY changed (1164189070 -> 1058892719) Dovecot would recover from that (deliver would deliver the mail on the next queue run) -- but why is that? -- Ralf Hildebrandt (Ralf.Hildebrandt at charite.de) plonk at charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de This message represents the official view of the voices in my head
Timo Sirainen
2007-Aug-09 13:32 UTC
[Dovecot] courier-dovecot-migrate.pl destroyed my indices... still recovering...
On Thu, 2007-08-09 at 15:19 +0200, Ralf Hildebrandt wrote:> I tried to disable courier-pop3 today in favour of dovecot pop3. > Prior to that I ran: > > find /home -maxdepth 1 -type d | xargs --replace /usr/local/scripts/courier-dovecot-migrate.pl --overwrite --recursive --convert {} > > ( /home is hashed two levels deep: /home/a/a/aanton/Maildir/ ) > > After that, I got lots of errors like: > > Aug 9 13:02:40 postamt dovecot: IMAP(azenclu): Maildir /home/a/z/azenclu/Maildir sync: UIDVALIDITY changed (1167827929 -> 1058881980).. If you had run Dovecot as IMAP server, then it wasn't such a great idea to run the migration, because it recreates dovecot-uidlist files trying to make them compatible with Courier's POP3 uidlist file. Creating dovecot-uidlist then caused the UIDVALIDITY to change, which causes IMAP clients to redownload all messages, and as you can see Dovecot doesn't handle UIDVALIDITY changes all that nicely. v1.1 does a better job with it though. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070809/759365b4/attachment-0002.bin>
Ralf Hildebrandt
2007-Aug-09 13:35 UTC
[Dovecot] courier-dovecot-migrate.pl destroyed my indices... still recovering...
* Timo Sirainen <tss at iki.fi>:> If you had run Dovecot as IMAP server, then it wasn't such a great idea > to run the migration, because it recreates dovecot-uidlist files trying > to make them compatible with Courier's POP3 uidlist file.Oops.> Creating dovecot-uidlist then caused the UIDVALIDITY to change, which > causes IMAP clients to redownload all messages, and as you can see > Dovecot doesn't handle UIDVALIDITY changes all that nicely. v1.1 does a > better job with it though.So, is there a way to migrate WITHOUT all my pop3 users re-downloading everything? -- Ralf Hildebrandt (Ralf.Hildebrandt at charite.de) plonk at charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de Now that we know Microsoft's plan for world domination isn't superman suppost to come out and kick some ass?