Hey,

for an import between two servers i would use imapsync. With doveadm flag (https://wiki.dovecot.org/Tools/Doveadm/Flags) you can mark the mails as unseen but be careful here, you can simple overwrite all other flags here too, maybe an other way is better here.

 

With doveadm backup / doveadm sync you can convert the mails between the formats like this way:

 

dsync backup -u "<user>" maildir:~/maildir-NEW

 

after converting the mails you can rename the mdbox folder to mdbox-OLD or something (backup) and rename the maildir-NEW folder to maildir

 

Yours sincerely

Pascal Rudolf

 

 

 

 

Von: dovecot <dovecot-bounces@dovecot.org> Im Auftrag von Odhiambo Washington
Gesendet: Donnerstag, 24. September 2020 15:25
An: Dovecot Mailing List <dovecot@dovecot.org>
Betreff: Importing Mail

 

Hi good people,

 

I have an old server that holds old mail (mdbox) and a new server that also uses mdbox.

I'd like to import the old mail from the old server into the live/new server. The imported mail should not be treated as new mail for the existing mail accounts.

 

What is the best way to achieve this?

 

Lastly, is there a way to convert mdbox to Maildir?


 

--

Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)