[Dovecot] dsync: error with hierarchy separator
Hi list!
I have a problem with transfering mails from mbox to maildir format. On dovecot wiki I found a dsync tool, which looks good, but returns me an error:
dsync -u mail@example.com mirror mbox:~/mail:INBOX=/var/mail/virtuser_808
dsync(root): Fatal: Mail locations must use the same virtual mailbox hierarchy separator (specify separator for the default namespace)
I found a solution with namespaces, but it doesn't work for me, there is still same error - I tried to add "-o separator=/" as option or add it to config file as mentioned there [1]. Can you push me to any solution?
My dovecot -n:
2.0.9: /etc/dovecot/dovecot.conf
OS: Linux 2.6.32-279.5.2.el6.x86_64 x86_64 CentOS release 6.3 (Final)
auth_mechanisms = plain login digest-md5 cram-md5 disable_plaintext_auth = no mail_location = maildir:~/.maildir managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl passdb { args = scheme=CRYPT username_format=%Lu /etc/dovecot/dovecot.passwd driver = passwd-file } plugin { autocreate = Spam autosubscribe = Spam sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { args = username_format=%Lu /etc/dovecot/dovecot.passwd driver = passwd-file } protocol imap { mail_plugins = autocreate }
[1] http://www.dovecot.org/list/dovecot/2010-September/053186.html
Thanks a lot.
-jj
On 12/05/2012 09:09 AM, Jakub Jedelsky wrote:
Hi all,
problem with namespace is solved (it's good to restart dovecot after changes in config, ehm) but now I have another strange problem. I moved mails from mbox to maildir with command above (with -f and -D added) but in some cases there are not inboxes. There were ntransfered. How can I solve it? I'm trying it again and have these messages:
dsync(info@...): Error: Sync failed for mbox file /var/www/mailbackup/virtuser_505: UID inserted in the middle of mailbox (16563 > 4091, seq=1, idx_msgs=586) dsync(info@...): Error: Sync failed for mbox file /var/www/mailbackup/virtuser_505: UID inserted in the middle of mailbox (16563 > 4091, seq=1, idx_msgs=586) dsync(info@...): Info: Faktury: only in dest dsync(info@...): Info: INBOX.Trash: only in dest dsync(info@...): Info: test: only in dest dsync(info@...): Info: Nedorucene maily: only in dest dsync(info@...): Info: Archives: only in dest dsync(info@...): Info: ESET Antispam: only in dest dsync(info@...): Info: RECOVERY PROBLEMS: only in dest dsync(info@...): Info: Spam: only in dest dsync(info@...): Info: Drafts: only in dest dsync(info@...): Info: INBOX_c50e4031a821c1509e2f0000b72b541e: only in dest dsync(info@...): Info: INBOX: only in dest dsync(info@...): Info: Sent: only in dest dsync(info@...): Info: Trash: only in dest dsync(info@...): Error: Sync failed for mbox file /var/www/mailbackup/virtuser_505: UID inserted in the middle of mailbox (17735 > 17149, seq=1, idx_msgs=586) dsync(info@...): Error: Sync failed for mbox file /var/www/mailbackup/virtuser_505: UID inserted in the middle of mailbox (17735 > 17149, seq=1, idx_msgs=586) dsync(info@...): Error: Sync failed for mbox file /var/www/mailbackup/virtuser_505: UID inserted in the middle of mailbox (18907 > 18321, seq=1, idx_msgs=586)
Another boxes are moved correctly. I will be happy for any hint.
Thank you.
-jj
participants (1)
-
Jakub Jedelsky