{"id":13190,"date":"2022-07-04T19:55:01","date_gmt":"2022-07-04T19:55:01","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=13190"},"modified":"2022-12-11T14:22:01","modified_gmt":"2022-12-11T14:22:01","slug":"maildir-and-mdbox","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=13190","title":{"rendered":"MailDir and Dbox (Multi-Dbox = mdbox)"},"content":{"rendered":"<p><a href=\"https:\/\/serverfault.com\/questions\/544750\/migrating-to-postfix-from-qmail-vpopmail\">serverfault.com: Migrating to postfix from qmail\/vpopmail<\/a><\/p>\n<p><a href=\"https:\/\/www.catalyst2.com\/knowledgebase\/dictionary\/maildir-and-mdbox\/\">catalyst2: MailDir and Mdbox<\/a><br \/>\n<a href=\"https:\/\/docs.iredmail.org\/change.mailbox.format.html\">iRedMail: Change per-user mailbox format (e.g. maildir, mdbox)<\/a><\/p>\n<h1>dovecot<\/h1>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# pkg info | grep dovecot\r\ndovecot2-2.2.20                Secure, fast and powerful IMAP and POP3 server\r\n<\/pre>\n<h4>Doc<\/h4>\n<p><a href=\"https:\/\/doc.dovecot.org\/admin_manual\/mailbox_formats\/dbox\/\">dbox Mailbox Format<\/a><br \/>\n<a href=\"https:\/\/doc.dovecot.org\/admin_manual\/migrating_mailboxes\/\">Migrating mailboxes<\/a><\/p>\n<h4>Wiki<\/h4>\n<p><a href=\"https:\/\/wiki.dovecot.org\/Migration\/MailFormat\">Migration\/MailFormat: Converting between mailbox formats<\/a><br \/>\n<a href=\"https:\/\/wiki.dovecot.org\/Tools\/Doveadm\/Sync?action=show&#038;redirect=Tools%2FDsync\">Tools\/Doveadm\/Sync: Doveadm-Sync<\/a><br \/>\n<a href=\"https:\/\/wiki2.dovecot.org\/Migration\/Dsync\">Migrating from any IMAP\/POP3 server to Dovecot via dsync<\/a><\/p>\n<pre class=\"brush: plain; title: \/usr\/local\/etc\/dovecot\/conf.d\/10-mail.conf; notranslate\" title=\"\/usr\/local\/etc\/dovecot\/conf.d\/10-mail.conf\">\r\nmail_location = maildir:\/usr\/local\/vpopmail\/domains\/%d\/%n\/Maildir\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/etc\/dovecot\/dovecot.conf\r\n\/etc\/dovecot\/dovecot-dict-auth.conf.ext\r\n\/etc\/dovecot\/dovecot-dict-sql.conf.ext\r\n\/etc\/dovecot\/dovecot-sql.conf.ext\r\n\/etc\/dovecot\/conf.d\/10-auth.conf\r\n\/etc\/dovecot\/conf.d\/10-director.conf\r\n\/etc\/dovecot\/conf.d\/10-logging.conf\r\n\/etc\/dovecot\/conf.d\/10-mail.conf\r\n\/etc\/dovecot\/conf.d\/10-master.conf\r\n\/etc\/dovecot\/conf.d\/10-ssl.conf\r\n\/etc\/dovecot\/conf.d\/10-tcpwrapper.conf\r\n\/etc\/dovecot\/conf.d\/15-lda.conf\r\n\/etc\/dovecot\/conf.d\/15-mailboxes.conf\r\n\/etc\/dovecot\/conf.d\/90-acl.conf\r\n\/etc\/dovecot\/conf.d\/90-plugin.conf\r\n\/etc\/dovecot\/conf.d\/90-quota.conf\r\n\/etc\/dovecot\/conf.d\/auth-checkpassword.conf.ext\r\n\/etc\/dovecot\/conf.d\/auth-deny.conf.ext\r\n\/etc\/dovecot\/conf.d\/auth-dict.conf.ext\r\n\/etc\/dovecot\/conf.d\/auth-master.conf.ext\r\n\/etc\/dovecot\/conf.d\/auth-passwdfile.conf.ext\r\n\/etc\/dovecot\/conf.d\/auth-sql.conf.ext\r\n\/etc\/dovecot\/conf.d\/auth-static.conf.ext\r\n\/etc\/dovecot\/conf.d\/auth-system.conf.ext\r\n\/etc\/dovecot\/conf.d\/auth-vpopmail.conf.ext\r\n\/etc\/systemd\/system\/multi-user.target.wants\/dovecot.service \u2192 \/lib\/systemd\/system\/dovecot.service\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ doveadm backup -f -u info@xxx.com maildir:\/home\/andreas\/MailBackup\r\ndoveadm(info@xxx.com): Error: userdb lookup: connect(\/var\/run\/dovecot\/auth-userdb) failed: Permission denied (euid=1001(andreas) egid=1001(andreas) missing +r perm: \/var\/run\/dovecot\/auth-userdb, dir owned by 0:0 mode=0755)\r\ndoveadm(info@xxx.com): Fatal: User lookup failed: Internal error occurred. Refer to server log for more information.\r\n\r\n# doveadm backup -f -u info@xxx.com maildir:\/home\/andreas\/MailBackup\r\ndsync(info@xxx.com): Error: mkdir(\/home\/andreas\/MailBackup\/cur) failed: Permission denied (euid=89(vpopmail) egid=89(vchkpw) missing +w perm: \/home\/andreas\/MailBackup, dir owned by 1001:1001 mode=0755)\r\ndsync(info@xxx.com): Error: open(\/home\/andreas\/MailBackup\/maildirfolder, O_CREAT) failed: Permission denied\r\ndsync(info@xxx.com): Error: mkdir(\/home\/andreas\/MailBackup\/cur) failed: Permission denied (euid=89(vpopmail) egid=89(vchkpw) missing +w perm: \/home\/andreas\/MailBackup, dir owned by 1001:1001 mode=0755)\r\ndsync(info@xxx.com): Error: Can't create mailbox INBOX: Internal error occurred. Refer to server log for more information. &#x5B;2022-09-10 15:02:59]\r\n\r\n# chown vpopmail:vchkpw \/home\/andreas\/MailBackup\r\n# doveadm backup -f -u info@xxx.com maildir:\/home\/andreas\/MailBackup\r\n# ls -la \/home\/andreas\/MailBackup\r\ndrwxr-xr-x  5 vpopmail  vchkpw   512 Sep 10 15:14 .Trash\r\ndrwxr-xr-x  2 vpopmail  vchkpw   512 Sep 10 15:14 cur\r\n-rw-r--r--  1 vpopmail  vchkpw   536 Sep 10 15:14 dovecot-uidlist\r\n-rw-r--r--  1 vpopmail  vchkpw     8 Sep 10 15:14 dovecot-uidvalidity\r\n-r--r--r--  1 vpopmail  vchkpw     0 Sep 10 15:14 dovecot-uidvalidity.631c8dab\r\n-rw-r--r--  1 vpopmail  vchkpw  3524 Sep 10 15:14 dovecot.index.cache\r\n-rw-r--r--  1 vpopmail  vchkpw   740 Sep 10 15:14 dovecot.index.log\r\n-rw-r--r--  1 vpopmail  vchkpw    24 Sep 10 15:14 dovecot.mailbox.log\r\n-rw-r--r--  1 vpopmail  vchkpw     0 Sep 10 15:14 maildirfolder\r\ndrwxr-xr-x  2 vpopmail  vchkpw   512 Sep 10 15:14 new\r\n-rw-r--r--  1 vpopmail  vchkpw     6 Sep 10 15:14 subscriptions\r\ndrwxr-xr-x  2 vpopmail  vchkpw   512 Sep 10 15:14 tmp\r\n\r\n# doveadm backup -f -u info@styleesh.com mdbox:\/home\/andreas\/MailBackup\r\ndsync(info@styleesh.com): Error: Mail locations must use the same virtual mailbox hierarchy separator (specify separator for the default namespace)\r\n\r\n# doveadm backup -f -u info@styleesh.com -o mail_location=mdbox:\/home\/andreas\/MailBackup\/mdbox maildir:\/home\/andreas\/MailBackup\/maildir\r\ndoveadm: illegal option -- o\r\ndoveadm backup &#x5B;-u &lt;user&gt;|-A] &#x5B;-S &lt;socket_path&gt;] &#x5B;-fPRU] &#x5B;-l &lt;secs&gt;] &#x5B;-r &lt;rawlog path&gt;] &#x5B;-m &lt;mailbox&gt;] &#x5B;-g &lt;mailbox_guid&gt;] &#x5B;-n &lt;namespace&gt; | -N] &#x5B;-x &lt;exclude&gt;] &#x5B;-s &lt;state&gt;] -d|&lt;dest&gt;\r\n\r\n# doveadm -D -o mail_location=mdbox:\/home\/andreas\/MailBackup\/mdbox backup -fR -u info@xxx.com maildir:\/home\/andreas\/MailBackup\/maildir\r\nDebug: Loading modules from directory: \/usr\/local\/lib\/dovecot\/doveadm\r\nDebug: Skipping module doveadm_acl_plugin, because dlopen() failed: \/usr\/local\/lib\/dovecot\/doveadm\/lib10_doveadm_acl_plugin.so: Undefined symbol &quot;acl_user_module&quot; (this is usually intentional, so just ignore this message)\r\nDebug: Skipping module doveadm_expire_plugin, because dlopen() failed: \/usr\/local\/lib\/dovecot\/doveadm\/lib10_doveadm_expire_plugin.so: Undefined symbol &quot;expire_set_lookup&quot; (this is usually intentional, so just ignore this message)\r\nDebug: Skipping module doveadm_quota_plugin, because dlopen() failed: \/usr\/local\/lib\/dovecot\/doveadm\/lib10_doveadm_quota_plugin.so: Undefined symbol &quot;quota_user_module&quot; (this is usually intentional, so just ignore this message)\r\nDebug: Module loaded: \/usr\/local\/lib\/dovecot\/doveadm\/lib10_doveadm_sieve_plugin.so\r\nDebug: Skipping module doveadm_fts_plugin, because dlopen() failed: \/usr\/local\/lib\/dovecot\/doveadm\/lib20_doveadm_fts_plugin.so: Undefined symbol &quot;fts_list_backend&quot; (this is usually intentional, so just ignore this message)\r\ndoveadm(info@xxx.com): Debug: Effective uid=89, gid=89, home=\/usr\/local\/vpopmail\/domains\/xxx.com\/info\r\ndoveadm(info@xxx.com): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:\/home\/andreas\/MailBackup\/mdbox\r\ndoveadm(info@xxx.com): Debug: fs: root=\/home\/andreas\/MailBackup\/mdbox, index=, indexpvt=, control=, inbox=, alt=\r\ndoveadm(info@xxx.com): Debug: Namespace : Using permissions from \/home\/andreas\/MailBackup\/mdbox: mode=0755 gid=default\r\ndsync(info@xxx.com): Debug: Effective uid=89, gid=89, home=\/usr\/local\/vpopmail\/domains\/xxx.com\/info\r\ndsync(info@xxx.com): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:\/home\/andreas\/MailBackup\/maildir\r\ndsync(info@xxx.com): Debug: maildir++: root=\/home\/andreas\/MailBackup\/maildir, index=, indexpvt=, control=, inbox=\/home\/andreas\/MailBackup\/maildir, alt=\r\ndsync(info@xxx.com): Error: Mail locations must use the same virtual mailbox hierarchy separator (specify separator for the default namespace)\r\n\r\ndoveadm(info@styleesh.com): Error: User initialization failed: namespace configuration error: list=yes requires prefix=backup to end with separator\r\ndoveadm(info@styleesh.com): Fatal: User init failed\r\n\r\ndoveadm(info@styleesh.com): Error: User initialization failed: namespace configuration error: All list=yes namespaces must use the same separator\r\ndoveadm(info@styleesh.com): Fatal: User init failed\r\n\r\n<\/pre>\n<pre class=\"brush: plain; title: No space left on device; notranslate\" title=\"No space left on device\">\r\n# doveadm backup -f -u abc@xyz.ch mdbox:\/home\/andreas\/dovecot_backup\/xyz.ch\/abc\r\n\r\n\/usr: write failed, filesystem is full\r\ndsync(abc@xyz.ch): Error: write(\/home\/andreas\/dovecot_backup\/xyz.ch\/abc\/storage\/.temp.1670767993.P88286Q1689M398392.ns2.xyz.ch) failed: No space left on device\r\ndsync(abc@xyz.ch): Error: write(\/home\/andreas\/dovecot_backup\/xyz.ch\/abc\/storage\/.temp.1670767993.P88286Q1689M398392.ns2.xyz.ch) failed: No space left on device\r\ndsync(abc@xyz.ch): Error: write() failed for file \/home\/andreas\/dovecot_backup\/xyz.ch\/abc\/storage\/.temp.1670767993.P88286Q1689M398392.ns2.xyz.ch: No space left on device\r\n\r\n\/usr: write failed, filesystem is full\r\ndsync(abc@xyz.ch): Error: write(\/home\/andreas\/dovecot_backup\/xyz.ch\/abc\/storage\/.temp.1670767993.P88286Q1690M398392.ns2.xyz.ch) failed: No space left on device\r\ndsync(abc@xyz.ch): Error: Mailbox Trash: Saving failed: Internal error occurred. Refer to server log for more information. &#x5B;2022-12-11 15:13:13]\r\ndsync(abc@xyz.ch): Error: write(\/home\/andreas\/dovecot_backup\/xyz.ch\/abc\/storage\/.temp.1670767993.P88286Q1690M398392.ns2.xyz.ch) failed: No space left on device\r\n\r\n\/usr: write failed, filesystem is full\r\n\r\n\/usr: write failed, filesystem is full\r\ndsync(abc@xyz.ch): Error: write() failed for file \/home\/andreas\/dovecot_backup\/xyz.ch\/abc\/storage\/.temp.1670767993.P88286Q1689M398392.ns2.xyz.ch: No space left on device\r\ndsync(abc@xyz.ch): Error: Mailbox Trash: Save commit failed: Internal error occurred. Refer to server log for more information. &#x5B;2022-12-11 15:13:13]\r\n<\/pre>\n<h3>cyon<\/h3>\n<p><a href=\"https:\/\/www.cyon.ch\/support\/a\/e-mail-konten-von-einem-anderen-dienst-zu-cyon-transferieren\">E-Mail-Konten von einem anderen Dienst zu cyon transferieren<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>serverfault.com: Migrating to postfix from qmail\/vpopmail catalyst2: MailDir and Mdbox iRedMail: Change per-user mailbox format (e.g. maildir, mdbox) dovecot # pkg info | grep dovecot dovecot2-2.2.20 Secure, fast and powerful IMAP and POP3 server Doc dbox Mailbox Format Migrating mailboxes Wiki Migration\/MailFormat: Converting between mailbox formats Tools\/Doveadm\/Sync: Doveadm-Sync Migrating from any IMAP\/POP3 server to Dovecot [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13190","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/13190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13190"}],"version-history":[{"count":10,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/13190\/revisions"}],"predecessor-version":[{"id":13673,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/13190\/revisions\/13673"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}