Same mail existed in multiple folders (was copied). dsync duplicates the mails by default. You could deduplicate with -a parameter: https://github.com/dovecot/core/commit/70df8f39fb3db7c49b18c855178f8172176a037a
> On 29 Jan 2016, at 00:02, Petr Bousek <a...@sundown.cz> wrote: > > I have some new info: > > the original Maildir size was 24GB > > after conversion to mdbox it was 48GB > > today I tried to convert it back to Maildir and it was 39GB > > So what's wrong? > > Zlib wasn't used in any step. > > Petr > > On 27.1.2016 21:34, Petr Bousek wrote: >> Hello, >> >> I have issue with dovecot 2.2.13 >> >> I want to change all Maildirs to mdbox format and I do it per partes, so I >> change mail_location for user (in sql), than I use doveadm sync -u user >> path_to_maildir and everything works mostly fine. >> >> But now I found that when I migrate quite huge Maildir (about 24G of mails) >> to mdbox, after sync the final mdbox is twice as big as source Maildir >> (48GB). I tried to find duplicities, but didn't find any. >> >> Is there any reason why mdbox consume so much data? Or I do something wrong? >> >> Does somebody have same experience? >> >> Thanks >> >> Petr