Mail migration problem

Germán Herrera g.herrera at ses.com.ar
Fri Jun 21 23:44:22 EEST 2019


Well, judging by the error message it appears like dovecot hasn't been 
compiled with support for maildir, which is strange because I don't see 
any way to disable in the compile-time options.

Are you using the precompiled package from the distro or compiling 
dovecot by yourself? Could you share the output of "dovecot 
--build-options" and "dovecot --version"?

Thanks!

On 2019-06-21 17:17, Adam Raszkiewicz wrote:

> Hi German,
> 
> I have tried your way and getting the same error message:
> 
> dsync(user at domain.com): Debug: Namespace inbox: type=private, prefix=, 
> sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes 
> location=maildir:~/Maildir
> 
> dsync(user at domain.com): Error: User initialization failed: Namespace 
> '': Unknown mail storage driver maildir
> 
> Thoughts? Missing dovecot library, something in the configuration?
> 
> Thanks,
> 
> Adam
> 
> FROM: dovecot <dovecot-bounces at dovecot.org> on behalf of Germán Herrera 
> via dovecot <dovecot at dovecot.org>
> ORGANIZATION: SES Sistemas Electrónicos S.A.
> REPLY-TO: Germán Herrera <g.herrera at ses.com.ar>
> DATE: Friday, June 21, 2019 at 3:10 PM
> TO: Adam Raszkiewicz <araszkiewicz at medallies.com>
> CC: "dovecot at dovecot.org" <dovecot at dovecot.org>
> SUBJECT: Re: Mail migration problem
> 
> Hi Adam
> 
> Can you try: "doveadm sync -u <user> maildir:~/Maildir"
> 
> My mailboxes are in sdbox (I have "mail_location = 
> sdbox:~/sdbox:ALT=/mnt/archive/%u/sdbox") and after running that 
> command I managed to successfully migrate the user mailbox to maildir. 
> Also that is the command I used to migrate all my user's maildirs to 
> sdbox some time ago.
> 
> Regards
> 
> ---
> 
> Germán Herrera
> Responsable de IT
> Ingeniería
> SES Sistemas Electrónicos S.A.| Espinosa 1045 (C1405AMM) | Buenos Aires 
> | Argentina
> W: +54 11 54530000 | Email: g.herrera at ses.com.ar
> 
> -------------------------
> 
> Denos su opinión aquí
> 
> On 2019-06-21 11:58, Adam Raszkiewicz via dovecot wrote:
> 
>> I'm trying to migrate mdbox to maildir based on 
>> https://wiki.dovecot.org/Migration/MailFormat
>> 
>> * Modified dovecot.conf and set 
>> mail_location=maildir:/tmp/destination/mailboxes/
>> * Then I had run
>> 
>> /mnt/testmail/bin/dsync -Dv -u user at domain.com mirror 
>> mdbox:/source/mailboxes/user at domain.com
>> 
>> but that did nothing. Then I have
>> 
>> * Modified dovecot.conf and set mail_location=mdbox:/source/mailboxes
>> * Then I had run
>> 
>> /mnt/testmail/bin/dsync -Dv -u user at domain.com mirror 
>> mdbox:/tmp/destination/mailboxes/user at domain.com
>> 
>> that copied over user at domain.com mailbox from the source to the 
>> destination location. As that was working I have tried to run
>> 
>> /mnt/testmail/bin/dsync -Dv -u user at domain.com mirror 
>> maildir:/tmp/destination/mailboxes/user at domain.com
>> 
>> but that got an error:
>> 
>> dsync(user at domain.com): Debug: Namespace inbox: type=private, prefix=, 
>> sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes 
>> location=maildir:/mnt/testmail/mailboxes
>> 
>> dsync(user at domain.com): Error: User initialization failed: Namespace 
>> '': Unknown mail storage driver maildir
>> 
>> First problem is that based on example #2 from above provided syntax 
>> in https://wiki.dovecot.org/Migration/MailFormat is incorrect or for 
>> some reason is not working for me as it should for example #1.
>> 
>> Second issue is not recognizing maildir format - what about that? 
>> Docecot has some missing libraries?
>> 
>> Thanks,
>> 
>> Adam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 7653 bytes
Desc: not available
URL: <https://dovecot.org/pipermail/dovecot/attachments/20190621/275be109/attachment.png>


More information about the dovecot mailing list