Copy mailbox from old disk to new server

Discussion in 'General' started by Energia, Aug 5, 2015.

  1. Energia

    Energia New Member

    Our old ISPConfig running Ubuntu 12.04 had a disk failure and ended up with a partly corrupted file system. To reduce downtime we created a new server running Ubuntu 14.04 with ISPConfig 3.0.5.4 and added the mailboxes. Users who used POP, had minimal downtime, but they who used IMAP, lost e-mail lying on the old server.
    We have been able to mount the disk from the old server and retrieved some mailboxes, do any one know of a handy way to merge the existing mailboxes on the new server, with those from the old one?
     
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    If you use dovecot2, you can do this with with dovecot´s replication. You can also use rsync to keep both /var/vmail at the same stage.
     
  3. Energia

    Energia New Member

    I do not want a mirror, but to import mail from the old disk into the new server (without overwriting messages that do only exist on the new server)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Just copy over the whole Maildir structure with Rsync. each message has its own file with its own name, so you won't overwrite other messages on the new system.
     
    Energia likes this.
  5. Energia

    Energia New Member

    Solved, thanks!
     

Share This Page