Hello,
I am deploying a new dovecot server to replace and old one, both of the
with dovecot 2.1.9. Now I want to synchronize imap mailbox from the old to the new one.
So, in my new server I run (whith a
$ sudo dsync -v -D -o imapc_host="<oldserver>" -o imapc_password="<master password>" -o imapc_features=rfc822.size backup -R -f -u myuser@um.es imapc: doveadm(root): Debug: Loading modules from directory: /usr/lib/dovecot/modules doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/lib02_lazy_expunge_plugin.so doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so 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: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so 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 intentional, so just ignore this message) doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so 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(myuser@um.es): Debug: Added userdb setting: plugin/quota_rule=*:storage=10G doveadm(myuser@um.es): Debug: Effective uid=2012, gid=204, home=/home/buzones/b1/an/myuser doveadm(myuser@um.es): Debug: acl: No acl_shared_dict setting - shared mailbox listing is disabled doveadm(myuser@um.es): Debug: Quota root: name=User quota backend=dict args=:file:/home/buzones/b1/an/myuser/quota doveadm(myuser@um.es): Debug: Quota rule: root=User quota mailbox=* bytes=10737418240 messages=0 doveadm(myuser@um.es): Debug: Quota rule: root=User quota mailbox=Trash bytes=+1073741824 messages=0 doveadm(myuser@um.es): Debug: dict quota: user=myuser@um.es, uri=file:/home/buzones/b1/an/myuser/quota, noenforcing=0 doveadm(myuser@um.es): Debug: Namespace : type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:/home/buzones/b1/an/myuser/mdbox:INDEX=/home/indexes/i1/an/myuser:ALT=/home/alt/a1/an/myuser doveadm(myuser@um.es): Debug: fs: root=/home/buzones/b1/an/myuser/mdbox, index=/home/indexes/i1/an/myuser, control=, inbox=, alt=/home/alt/a1/an/myuser doveadm(myuser@um.es): Debug: Namespace : Using permissions from /home/buzones/b1/an/myuser/mdbox: mode=0700 gid=-1 doveadm(myuser@um.es): Debug: acl: initializing backend with data: vfile doveadm(myuser@um.es): Debug: acl: acl username = myuser@um.es doveadm(myuser@um.es): Debug: acl: owner = 1 doveadm(myuser@um.es): Debug: acl vfile: Global ACL directory: (none) doveadm(myuser@um.es): Debug: Namespace : type=private, prefix=BORRADOS., sep=., inbox=no, hidden=yes, list=no, subscriptions=yes location=mdbox:/home/buzones/b1/an/myuser/expunged doveadm(myuser@um.es): Debug: fs: root=/home/buzones/b1/an/myuser/expunged, index=, control=, inbox=, alt= doveadm(myuser@um.es): Debug: Namespace BORRADOS.: Using permissions from /home/buzones/b1/an/myuser/expunged: mode=0700 gid=-1 doveadm(myuser@um.es): Debug: acl: initializing backend with data: vfile doveadm(myuser@um.es): Debug: acl: acl username = myuser@um.es doveadm(myuser@um.es): Debug: acl: owner = 1 doveadm(myuser@um.es): Debug: acl vfile: Global ACL directory: (none) dsync(myuser@um.es): Debug: Effective uid=2012, gid=204, home=/home/buzones/b1/an/myuser dsync(myuser@um.es): Debug: acl: No acl_shared_dict setting - shared mailbox listing is disabled dsync(myuser@um.es): Debug: Quota root: name=User quota backend=dict args=:file:/home/buzones/b1/an/myuser/quota dsync(myuser@um.es): Debug: Quota rule: root=User quota mailbox=* bytes=10737418240 messages=0 dsync(myuser@um.es): Debug: Quota rule: root=User quota mailbox=Trash bytes=+1073741824 messages=0 dsync(myuser@um.es): Debug: dict quota: user=myuser@um.es, uri=file:/home/buzones/b1/an/myuser/quota, noenforcing=0 dsync(myuser@um.es): Debug: Namespace : type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes location=imapc: dsync(myuser@um.es): Debug: imapc: root=, index=, control=, inbox=, alt= dsync(myuser@um.es): Debug: imapc(myotis30.um.es:143): Looking up IP address dsync(myuser@um.es): Debug: imapc(myotis30.um.es:143): Connecting to 155.54.211.169:143 dsync(myuser@um.es): Debug: imapc(myotis30.um.es:143): Server capabilities: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN dsync(myuser@um.es): Debug: imapc(myotis30.um.es:143): Authenticating as master for user myuser@um.es dsync(myuser@um.es): Debug: imapc(myotis30.um.es:143): Server capabilities: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE QUOTA ACL RIGHTS=texk dsync(myuser@um.es): Debug: imapc(myotis30.um.es:143): Authenticated successfully dsync(myuser@um.es): Debug: acl: initializing backend with data: vfile dsync(myuser@um.es): Debug: acl: acl username = myuser@um.es dsync(myuser@um.es): Debug: acl: owner = 1 dsync(myuser@um.es): Debug: acl vfile: Global ACL directory: (none) dsync(myuser@um.es): Debug: Namespace : type=private, prefix=BORRADOS., sep=., inbox=no, hidden=yes, list=no, subscriptions=yes location=mdbox:/home/buzones/b1/an/myuser/expunged dsync(myuser@um.es): Debug: fs: root=/home/buzones/b1/an/myuser/expunged, index=, control=, inbox=, alt= dsync(myuser@um.es): Debug: Namespace BORRADOS.: Using permissions from /home/buzones/b1/an/myuser/expunged: mode=0700 gid=-1 dsync(myuser@um.es): Debug: acl: initializing backend with data: vfile dsync(myuser@um.es): Debug: acl: acl username = myuser@um.es dsync(myuser@um.es): Debug: acl: owner = 1 dsync(myuser@um.es): Debug: acl vfile: Global ACL directory: (none) dsync(myuser@um.es): Debug: acl vfile: file /home/buzones/b1/an/myuser/mdbox/mailboxes/dovecot-acl not found dsync(myuser@um.es): Error: Failed to sync mailbox INBOX: Internal error occurred. Refer to server log for more information. [2013-02-12 13:52:29] dsync(myuser@um.es): Debug: acl vfile: file /home/buzones/b1/an/myuser/mdbox/mailboxes/INBOX/dbox-Mails/dovecot-acl not found dsync(myuser@um.es): Error: Can't delete mailbox INBOX: INBOX can't be deleted. dsync(myuser@um.es): Info: INBOX: only in dest (guid=edd76012063b1a5138270000a9061514) dsync(myuser@um.es): Error: Trying to open a non-listed mailbox with guid=edd76012063b1a5138270000a9061514 dsync(myuser@um.es): Error: msg iteration failed: Couldn't open mailbox edd76012063b1a5138270000a9061514 dsync(myuser@um.es): Error: Trying to open a non-listed mailbox with guid=edd76012063b1a5138270000a9061514 dsync(myuser@um.es): Debug: imapc(myotis30.um.es:143): Disconnected
In the old server I get the error:
Feb 12 13:52:29 myotis30 dovecot: imap(myuser@um.es): Error: Failed to autocreate mailbox INBOX: Permission denied Feb 12 13:52:29 myotis30 dovecot: imap(myuser@um.es): Debug: acl: Mailbox not in dovecot-acl-list: Archives Feb 12 13:52:29 myotis30 dovecot: imap(myuser@um.es): Debug: acl: Mailbox not in dovecot-acl-list: Archives.2012 Feb 12 13:52:29 myotis30 dovecot: imap(myuser@um.es): Debug: acl: Mailbox not in dovecot-acl-list: Sent Items
So it seems dsync is trying to create a mailbox in the original server.
What am I doing wrong?
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868889150 Fax: 868888337