courier-dovecot-migrate

最後更新: 2015-03-31

 

介紹

  • Preserving IMAP UIDs and POP3 UIDLs
  • Fix namespase issue

 


Download

http://www.dovecot.org/tools/courier-dovecot-migrate.pl

courier-dovecot-migrate.pl 原理:

courierimapuiddb & courierpop3dsizelist -->  dovecot-uidlist

假設 Folder 結構如下

domain
   user1
   user2
   ..........

CMD:

courier-dovecot-migrate.pl --convert --overwrite --recursive --to-dovecot  username

--overwrite    <--  dovecot-uidlist

--recursive            only one level down in directory hierarchies

courier-dovecot-migrate.pl --quiet --to-dovecot --convert Maildir

    The folder namespace hierarchy separator is the . character
    Private folders are stored underneath the "INBOX." hierarchy
    Public folders are stored underneath the "shared." hierarchy

所以都是每個 user 一個一個轉較好.

Check

Make sure the conversion worked by checking that dovecot-uidlist files were created to all maildirs (including to subfolders).

Remark:

WARNING: Badly done migration will cause your IMAP and/or POP3 clients to re-download all mails.

P.S.

Courier 的 IMAP namespace

namespace {
  prefix = INBOX.
  separator = .
  inbox = yes
}

 

 

Creative Commons license icon Creative Commons license icon