Issue with mailbox conversion using dsync in v2.2.32 (maildir <-> mdbox)

Timo Sirainen tss at iki.fi
Tue Oct 10 16:52:26 EEST 2017


On 10 Oct 2017, at 3.36, Jason Kiniry <jason.kiniry at gmail.com> wrote:
> 
> Hi all,
> 
> I've run into an issue with in-place mailbox format conversions between
> mdbox and maildir and wondered if someone could assist. When using dsync to
> convert a mailbox, the conversion loses a mailbox GUID and produces a
> warning. This behavior seems to have been introduced between version 2.2.31
> and 2.2.32. See below for the full debug output from both versions followed
> by the dovecot configuration used for both attempts.
> 
> When I run the following:
> 
> /usr/bin/dsync -f -D -o mail_location=mdbox:/home/blahmail/mail -u
> _mainaccount at blahmail.tld -v mirror maildir:/home/blahmail/mail

Where is the Maildir coming from? Has it been used by Dovecot earlier, or is it something else?

> doveadm(_mainaccount at blahmail.tld): Debug: Namespace INBOX.:
> /home/blahmail/mail/mailboxes/INBOX doesn't exist yet, using default
> permissions

So mdbox apparently didn't exist before you ran dsync.

> dsync(blahmail): Debug: brain M: Local mailbox tree: INBOX
> guid=60f6d91a25fddb5983040000a19766e2 uid_validity=1507589418 uid_next=1
> subs=no last_change=0 last_subs=0
> dsync(blahmail): Debug: brain S: Local mailbox tree: INBOX
> guid=e6191d3644fddb59e2040000a19766e2 uid_validity=1507589413 uid_next=2
> subs=no last_change=0 last_subs=0

But here the INBOXes already have conflicting UIDVALIDITYs. One of these was created too early.

I think one of these helps:
 * disable quota
 * disable quota_clone
 * disable mailbox_list_index




More information about the dovecot mailing list