Import Maildir folder into Dovecot

Sometimes, I had backuped Maildir because I would update the server... Often, I was too lazy to reimport the mails into the new Maildir...

But it's not that complicated! At least this approach works:

# doveadm import -u triaxx -U triaxx maildir:/home/triaxx/mail.bak backup all

The mail.bak directory is a Maildir structure with the cur, new and tmp subdirectories. It will create a .backup.INBOX subdirectory in which the mails will have been copied.

Add a comment

HTML code is displayed as text and web addresses are automatically converted.

Add ping

Trackback URL : https://blog.triaxx.org/trackback/14

Page top