[Dovecot] IMAP to Maildir Migration preserving UIDs?

Timo Sirainen tss at iki.fi
Fri Jan 27 02:45:45 EET 2012


On 27.1.2012, at 2.33, Gedalya wrote:

>> # doveadm -o imapc_user=jedi at example.com -o imapc_password=***** backup -u jedi at example.com -R imapc:/tmp/imapc
>> dsync(jedi at example.com): Error: Failed to sync mailbox Drafts: STATUS cannot access mailbox Drafts

Apparently your server doesn't like sending STATUS command to Drafts mailbox and returns a failure. This isn't very nice from it.

>> dsync(jedi at example.com): Fatal: dsync backup: Looks like you're trying to run backup in wrong direction. Source is empty and destination is not.

The -R parameter reversed the direction. It possibly fails because of the STATUS error. Or maybe some other problem, I'd need to look into it. You could try giving "-m INBOX" parameter to see if it works for one mailbox.

> This got me somewhere...
> 
> # doveadm -o imapc_user=jedi1 at example.com -o imapc_password=***** import -u jedi1 at example.com imapc: "" all
> doveadm(jedi1 at example.com): Error: Copying box=INBOX uid=1 failed: Message GUID not available in this server (guid)

Fixed: http://hg.dovecot.org/dovecot-2.1/rev/f3e000992f61

But doveadm import doesn't preserve UIDs.


More information about the dovecot mailing list