Problem with converting mdbox to MailDir

Adam Raszkiewicz araszkiewicz at medallies.com
Wed Oct 2 23:49:54 EEST 2019


I have a problem to convert mdbox to MailDir. Log from that process looks like:

/bin/dsync -Dv -u user at domian.com mirror maildir:/tmp/destination/mailboxes/user at domian.com

Debug: Loading modules from directory: /lib/dovecot
Debug: Module loaded: /lib/dovecot/lib01_acl_plugin.so
Debug: Loading modules from directory: /lib/dovecot/doveadm
Debug: Module loaded: /lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so: undefined symbol: expire_set_lookup (this is usually intentional, so just ignore this message)
Debug: Skipping module doveadm_quota_plugin, because dlopen() failed: /lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so: undefined symbol: quota_user_module (this is usually intentional, so just ignore this message)
Debug: Module loaded: /lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: /lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so: undefined symbol: fts_list_backend (this is usually intentional, so just ignore this message)
doveadm(user at domian.com): Debug: Effective uid=503, gid=503, home=/var/mailboxes/%2Mu/%2.2Mu/%u
doveadm(user at domian.com): Debug: Home dir not found: /var/mailboxes/%2Mu/%2.2Mu/%u
doveadm(user at domian.com): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:/var/mailboxes/64/b1/user at domian.com
doveadm(user at domian.com): Debug: fs: root=/var/mailboxes/64/b1/user at domian.com, index=, indexpvt=, control=, inbox=, alt=
doveadm(user at domian.com): Debug: acl: initializing backend with data: vfile
doveadm(user at domian.com): Debug: acl: acl username = user at domian.com
doveadm(user at domian.com): Debug: acl: owner = 1
doveadm(user at domian.com): Debug: acl vfile: Global ACLs disabled
doveadm(user at domian.com): Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=mdbox:/var/mailboxes/%2Mu/%2.2Mu/%u
doveadm(user at domian.com): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
doveadm(user at domian.com): Debug: acl: initializing backend with data: vfile
doveadm(user at domian.com): Debug: acl: acl username = user at domian.com
doveadm(user at domian.com): Debug: acl: owner = 0
doveadm(user at domian.com): Debug: acl vfile: Global ACLs disabled
doveadm(user at domian.com): Debug: acl vfile: file /var/mailboxes/64/b1/user at domian.com/mailboxes/INBOX/dbox-Mails/dovecot-acl not found
doveadm(user at domian.com): Debug: acl vfile: file /var/mailboxes/64/b1/user at domian.com/mailboxes/Drafts/dbox-Mails/dovecot-acl not found
doveadm(user at domian.com): Debug: acl vfile: file /var/mailboxes/64/b1/user at domian.com/mailboxes/Sent/dbox-Mails/dovecot-acl not found
doveadm(user at domian.com): Debug: acl vfile: file /var/mailboxes/64/b1/user at domian.com/mailboxes/Trash/dbox-Mails/dovecot-acl not found
doveadm(user at domian.com): Debug: Namespace : Using permissions from /var/mailboxes/64/b1/user at domian.com: mode=0700 gid=default
dsync(user at domian.com): Debug: Effective uid=503, gid=503, home=/var/mailboxes/%2Mu/%2.2Mu/%u
dsync(user at domian.com): Debug: Home dir not found: /var/mailboxes/%2Mu/%2.2Mu/%u
dsync(user at domian.com): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/tmp/destination/mailboxes/user at domian.com
dsync(user at domian.com): Debug: maildir++: root=/tmp/destination/mailboxes/user at domian.com, index=, indexpvt=, control=, inbox=/tmp/destination/mailboxes/user at domian.com, alt=
dsync(user at domian.com): Debug: Namespace : /tmp/destination/mailboxes/user at domian.com doesn't exist yet, using default permissions
dsync(user at domian.com): Debug: Namespace : Using permissions from /tmp/destination/mailboxes/user at domian.com: mode=0700 gid=default
dsync(user at domian.com): Debug: acl: initializing backend with data: vfile
dsync(user at domian.com): Debug: acl: acl username = user at domian.com
dsync(user at domian.com): Debug: acl: owner = 1
dsync(user at domian.com): Debug: acl vfile: Global ACLs disabled
dsync(user at domian.com): Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=mdbox:/var/mailboxes/%2Mu/%2.2Mu/%u
dsync(user at domian.com): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
dsync(user at domian.com): Debug: acl: initializing backend with data: vfile
dsync(user at domian.com): Debug: acl: acl username = user at domian.com
dsync(user at domian.com): Debug: acl: owner = 0
dsync(user at domian.com): Debug: acl vfile: Global ACLs disabled
dsync(user at domian.com): Error: User initialization failed: namespace configuration error: All list=yes namespaces must use the same separator

but when I will specify namespace to the inbox like

/bin/dsync -Dv -u user at domian.com mirror maildir:/tmp/destination/mailboxes/user at domian.com -n inbox

it throws different error:

doveadm(user at domian.com): Debug: Namespace : Using permissions from /var/mailboxes/64/b1/user at domian.com: mode=0700 gid=default
doveadm(user at domian.com): Fatal: execvp(maildir:/tmp/destination/mailboxes/user at domian.com) failed: No such file or directory
dsync-local(user at domian.com): Error: read(remote) failed: EOF (version not received

when /tmp/destination/mailboxes/user at domian.com directory exists

What I’m doing wrong in the process?

--
Adam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20191002/013a8052/attachment-0001.html>


More information about the dovecot mailing list