Jan Binder
2011-Feb-17 13:25 UTC
[Dovecot] dsync problem: Error: Can't rename mailbox INBOX
Hi all, I'm running two debian machines with dovecot 2.0.9 autobuilds and would like to keep mails synchronized on both via dsync. Mails are kept in maildir on both sides. While syncing, dsync gives the following error: dsync-local(jan.binder): Error: Can't rename mailbox INBOX to INBOX_a432bf2eca595a4dba47000043b078f4: Renaming INBOX isn't supported. dsync-local(jan.binder): Error: Can't rename mailbox INBOX_e184273887675a4dcc5b00000c16d079 to INBOX: Target mailbox already exists Further diagnostic information: dsync command: dsync -D -v -f mirror ssh jan.binder at firefly.local dsync dovecot -n on firefly.local: # 2.0.9 (159605040ec0): /etc/dovecot/dovecot.conf # OS: Linux 2.6.37-trunk-686-bigmem i686 Debian wheezy/sid 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 passdb { driver = pam } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap lmtp ssl_cert = </etc/ssl/certs/dovecot.pem ssl_key = </etc/ssl/private/dovecot.pem userdb { driver = passwd } dovecot -n on depth.local: # 2.0.9 (049a922c193c): /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-amd64 x86_64 Debian wheezy/sid 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 passdb { driver = pam } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap lmtp ssl_cert = </etc/ssl/certs/dovecot.pem ssl_key = </etc/ssl/private/dovecot.pem userdb { driver = passwd } Should this usage of dsync work in principle? Best regards, Jan Binder
Timo Sirainen
2011-Feb-17 16:14 UTC
[Dovecot] dsync problem: Error: Can't rename mailbox INBOX
On Thu, 2011-02-17 at 14:25 +0100, Jan Binder wrote:> dsync-local(jan.binder): Error: Can't rename mailbox INBOX to INBOX_a432bf2eca595a4dba47000043b078f4: Renaming INBOX isn't supported. > dsync-local(jan.binder): Error: Can't rename mailbox INBOX_e184273887675a4dcc5b00000c16d079 to INBOX: Target mailbox already existsSyncing INBOX is a bit weak point with dsync currently. Basically the problem is that the local and remote INBOX has a different mailbox GUID, so dsync treats them as different mailboxes that have a naming conflict. The usual way to resolve this by renaming doesn't work, because INBOX can't be renamed. You should be able to solve this by deleting the INBOX manually from the other side and letting dsync create it again with the proper GUID. What mailbox format do you use? I don't see mail_location in your settings.