[Dovecot] IMAP to Maildir Migration preserving UIDs?
Gedalya
gedalya at gedalya.net
Fri Jan 27 02:44:01 EET 2012
On 01/26/2012 07:17 PM, Gedalya wrote:
> On 01/26/2012 07:06 PM, Timo Sirainen wrote:
>> On 27.1.2012, at 2.00, Gedalya wrote:
>>
>>>>> # doveadm -o imapc_user=gedalya at thisdomain.com -o
>>>>> imapc_password=***** backup -u gedalya at thisdomain.com -R imapc:
>>>>> Segmentation fault
>>>> gdb backtrace would be helpful. You should be able to get that by
>>>> running (as root):
>>>>
>>> 213 mailbox-log.c: No such file or directory.
>>> in mailbox-log.c
>>> (gdb) bt full
>>> #0 mailbox_log_iter_open_next (iter=0x80cbd90) at mailbox-log.c:213
>>> No locals.
>>> #1 0xb7fa7dd4 in mailbox_log_iter_init (log=0x0) at mailbox-log.c:239
>>> iter = 0x80cbd90
>>> #2 0x0806ffd3 in dsync_worker_get_list_mailbox_log (list=0x80b6180,
>>> worker=0x80c3138) at dsync-worker-local.c:316
>> Ah, right, dsync really wants index files. Of course it shouldn't
>> crash, I'll fix that, but you should be able to work around it:
>>
>> rm -rf /tmp/imapc
>> doveadm -o imapc_user=USERNAME -o imapc_password=PASSWORD backup -R
>> imapc:/tmp/imapc
>>
> # doveadm -o imapc_user=jedi at example.com -o imapc_password=*****
> backup -u jedi at example.com -R imapc:/tmp/imapc
> dsync(jedi at example.com): Error: Failed to sync mailbox Drafts: STATUS
> cannot access mailbox Drafts
> dsync(jedi at example.com): Fatal: dsync backup: Looks like you're trying
> to run backup in wrong direction. Source is empty and destination is not.
>
> To be clear, I am trying to pull all the mailboxes from the old server
> on to this dovecot server, which has no mailboxes populated yet. It
> looks like this command would be pushing the messages from here to the
> imapc_host rather than pulling?
>
Sorry, my bad. That was a malfunction on the old IMAP server - that
mailbox is inaccessible.
Tried with another account:
doveadm -o imapc_user=jedi1 at example.com -o imapc_password=***** backup
-u jedi1 at example.com -R imapc:/tmp/imapc
dsync(jedi1 at example.com): Error: msg guid lookup failed: Message GUID
not available in this server
dsync(jedi1 at example.com): Error: msg guid lookup failed: Message GUID
not available in this server
dsync(jedi1 at example.com): Panic: file dsync-brain.c: line 901
(dsync_brain_sync_all): assertion failed: (brain->state != old_state)
dsync(jedi1 at example.com): Error: Raw backtrace:
/usr/lib/dovecot/libdovecot.so.0(+0x3e98a) [0xb756a98a] ->
/usr/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x41)
[0xb756aa91] -> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0xb753f66b]
-> doveadm() [0x8067095] -> doveadm() [0x8064cfd] -> doveadm()
[0x805371e] -> doveadm(doveadm_mail_single_user+0x5e) [0x8053b2e] ->
doveadm() [0x8053f58] -> doveadm(doveadm_mail_try_run+0x139) [0x80543d9]
-> doveadm(main+0x3a7) [0x8053347] ->
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xe6)
[0xb73e8e46] -> doveadm() [0x8053519]
Aborted
So there :D
More information about the dovecot
mailing list