[Dovecot] Copying just the folders to new Dovecot server?

Bjørn T Johansen btj at havleik.no
Fri Dec 14 11:12:39 EET 2012


On Fri, 14 Dec 2012 09:51:34 +0100 (CET)
Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Fri, 14 Dec 2012, Bjørn T Johansen wrote:
> 
> > I am setting up a new Dovecot server and I want to start from scratch, i.e. with an empty mailbox. But I want to have the same folders in my new mailbox that I have in my old. Is
> > there a way to create these folders without manually creating one by one?
> 
> Depending on your storage backend you can pre-create the folders. E.g. if 
> you use Maildir, you create
> 
> mkdir .Folder.Subfolder.Subfolder/new
> mkdir .Folder.Subfolder.Subfolder/cur
> mkdir .Folder.Subfolder.Subfolder/tmp
> 
> touch .Folder.Subfolder.Subfolder/maildirfolder
> 
> For current versions of Dovecot, you can use the doveadm tool:
> 
> doveadm mailbox create [-A|-u user] [-S socket_path] [-s] mailbox ...
> 
> Regards,
> 
> - -- 
> Steffen Kaiser


Thx but I then still need to do it manually.. But I think I will do it manually anyway, so I can do some cleanup at the same time... :)

BTJ

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the dovecot mailing list