[Dovecot] Migrating domain using IMAPc

Breno Moreira
2013-07-04T18:19:55Z

Hi list,

I'm trying to do a domain migration using the imapc feature, but i'm
having
some problems and I really don't know what is happening.

So if you guys could help me with a path to solve this, I will be glad.
I'm using Dovecot 2.1.7 in a Debian Wheezy machine.

The command I'm using is:

dsync -Dv -o imapc_features=rfc822.size -o imapc_host=IP -o imapc_port=143
-o imapc_username='breno.moreira at mav.com.br' -o
imapc_password='pass' -u
breno.moreira at mav.com.br mirror imapc:/tmp/dsync-imapc

and what I got with the logs is:

doveadm(root): Debug: Loading modules from directory:
/usr/lib/dovecot/modules
doveadm(root): Debug: Module loaded:
/usr/lib/dovecot/modules/lib20_zlib_plugin.so
doveadm(root): Debug: Loading modules from directory:
/usr/lib/dovecot/modules/doveadm
doveadm(root): Debug: Skipping module doveadm_acl_plugin, because dlopen()
failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so:
undefined symbol: acl_user_module (this is usually intentional, so
just ignore this message)
doveadm(root): Debug: Skipping module doveadm_expire_plugin, because
dlopen() failed:
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so: undefined
symbol: expire_set_deinit (this is usually intentio
nal, so just ignore this message)
doveadm(root): Debug: Skipping module doveadm_quota_plugin, because
dlopen() failed:
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so: undefined
symbol: quota_user_module (this is usually intentiona
l, so just ignore this message)
doveadm(root): Debug: Module loaded:
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_zlib_plugin.so
doveadm(root): Debug: Skipping module doveadm_fts_plugin, because dlopen()
failed: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so:
undefined symbol: fts_backend_rescan (this is usually intentional,
so just ignore this message)
doveadm(breno.moreira at mav.com.br): Debug: Added userdb setting:
mail=sdbox:~/:ALT=/srv/dovehdodd/dovecot/mav.com.br/breno.moreira
doveadm(breno.moreira at mav.com.br): Debug: Effective uid=5000, gid=5000,
home=/srv/dovessdodd/dovecot/mav.com.br/breno.moreira
doveadm(breno.moreira at mav.com.br): Debug: Namespace : type=private,
prefix=INBOX., sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes
location=sdbox:~/:ALT=/srv/dovehdodd/dovecot/mav.com.br/breno.moreira
doveadm(breno.moreira at mav.com.br): Debug: fs: root=/srv/dovessdodd/dovecot/
mav.com.br/breno.moreira, index=, control=, inbox=,
alt=/srv/dovehdodd/dovecot/mav.com.br/breno.moreira
dsync(breno.moreira at mav.com.br): Debug: Effective uid=5000, gid=5000,
home=/srv/dovessdodd/dovecot/mav.com.br/breno.moreira
dsync(breno.moreira at mav.com.br): Debug: Namespace : type=private,
prefix=INBOX., sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes
location=imapc:/tmp/dsync-imapc
dsync(breno.moreira at mav.com.br): Debug: imapc: root=/tmp/dsync-imapc,
index=, control=, inbox=, altdsync(breno.moreira at mav.com.br): Debug:
maildir++: root=/tmp/dsync-imapc,
index=, control=, inbox=, altdsync(breno.moreira at mav.com.br): Debug:
imapc(187.115.200.155:143): Looking
up IP address
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143):
Connecting to 187.115.200.155:143
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143): Server
capabilities: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS
AUTH=PLAIN AUTH=LOGIN
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143):
Authenticating as breno.moreira at mav.com.br
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143): Server
capabilities: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT I
DLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC
ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143):
Authenticated successfully
dsync(breno.moreira at mav.com.br): Debug: Namespace INBOX.: Using permissions
from /srv/dovessdodd/dovecot/mav.com.br/breno.moreira: mode=0700 gid=-1
dsync(breno.moreira at mav.com.br): Debug: Namespace INBOX.: Using permissions
from /tmp/dsync-imapc: mode=0755 gid=-1
dsync(breno.moreira at mav.com.br): Error: Can't create mailbox INBOX: Empty
mailbox name.
dsync(breno.moreira at mav.com.br): Info: INBOX: only in dest
(guid=c92f64f79f0d1ed01e6d5b314f04886c)
dsync(breno.moreira at mav.com.br): Info: INBOX: only in source
(guid=f4c6a715e8b1d551112d000042e5307d)
dsync(breno.moreira at mav.com.br): Error: Mailbox INBOX changed its GUID
(c92f64f79f0d1ed01e6d5b314f04886c -> f4c6a715e8b1d551112d000042e5307d)
dsync(breno.moreira at mav.com.br): Error: msg iteration failed: Couldn't
open
mailbox c92f64f79f0d1ed01e6d5b314f04886c
dsync(breno.moreira at mav.com.br): Error: Mailbox INBOX changed its GUID
(c92f64f79f0d1ed01e6d5b314f04886c -> f4c6a715e8b1d551112d000042e5307d)
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143): Looking
up IP address
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143):
Connecting to 187.115.200.155:143
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143): Server
capabilities: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS
AUTH=PLAIN AUTH=LOGIN
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143):
Authenticating as breno.moreira at mav.com.br
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143): Server
capabilities: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT I
DLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC
ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS
dsync(breno.moreira at mav.com.br): Debug: imapc(187.115.200.155:143):
Authenticated successfully
dsync(breno.moreira at mav.com.br): Panic: file mail-storage.c: line 794
(mailbox_check_mismatching_separators): assertion failed: (vname[0]
=ns->prefix[ns->prefix_len-1])
dsync(breno.moreira at mav.com.br): Error: Raw backtrace:
/usr/lib/dovecot/libdovecot.so.0(+0x4373a) [0x7f21a814b73a] ->
/usr/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x2a)
[0x7f21a814b7fa] -> /usr/lib/dove
cot/libdovecot.so.0(i_fatal+0) [0x7f21a81237e2] ->
/usr/lib/dovecot/libdovecot-storage.so.0(+0x7ce8e) [0x7f21a8411e8e] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_open+0x18)
[0x7f21a8411ed8] -> /usr/lib/d
ovecot/libdovecot-storage.so.0(imapc_mailbox_sync_init+0x95)
[0x7f21a83fd235] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x33)
[0x7f21a8410e23] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailb
ox_sync+0x27) [0x7f21a8410f47] -> /usr/bin/dsync(+0x2ef11) [0x7f21a8b20f11]
-> /usr/bin/dsync(+0x2f03f) [0x7f21a8b2103f] -> /usr/bin/dsync(+0x30ac4)
[0x7f21a8b22ac4] -> /usr/bin/dsync(dsync_worker_msg_iter_next+0x34)
[0x7f21a8b1ffb4] -> /usr/bin/dsync(+0x292b4) [0x7f21a8b1b2b4] ->
/usr/bin/dsync(+0x29352) [0x7f21a8b1b352] ->
/usr/bin/dsync(dsync_brain_msg_sync_more+0x450) [0x7f21a8b1b7c0] ->
/usr/bin/dsync(dsync_brain_sync+0xc21) [0x7f21a8b1a6c1] ->
/usr/bin/dsync(+0x28e01) [0x7f21a8b1ae01] ->
/usr/bin/dsync(dsync_brain_sync+0x7b7) [0x7f21a8b1a257] ->
/usr/bin/dsync(+0x28c98) [0x7f21a8b1ac98] ->
/usr/bin/dsync(dsync_brain_sync+0x7f8) [0x7f21a8b1a298] ->
/usr/bin/dsync(dsync_brain_sync_all+0x18) [0x7f21a8b1ae68] ->
/usr/bin/dsync(+0x25f76) [0x7f21a8b17f76] -> /usr/bin/dsync(+0x26461)
[0x7f21a8b18461] -> /usr/bin/dsync(+0x13486) [0x7f21a8b05486] ->
/usr/bin/dsync(+0x13f51) [0x7f21a8b05f51] ->
/usr/bin/dsync(doveadm_mail_try_run+0x159) [0x7f21a8b063e9] ->
/usr/bin/dsync(main+0x3a1) [0x7f21a8b05031] ->
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f21a7d9cead]
Aborted


Best Regards,

--
---------------------------------------------------------------------
Breno Moreira

?O ?xito na vida n?o se mede pelo que voc? conquistou,

mas sim pelas dificuldades que superou no caminho.?

*                    Abraham Lincoln*