Importing existing mail into ISPConfig 3

Discussion in 'General' started by Odendaal1, May 8, 2013.

  1. Odendaal1

    Odendaal1 New Member

    Good day,

    Is there perhaps a way to import existing mail messages into a new ISPConfig installation?

    I have an Ubuntu web server with mail setup on the server. There is no control panel installed and everything gets done through the terminal. The email is located in some kind of flat file configuration in each users folder on the server.

    I inherited this server with the configuration and would like to move to ISPConfig but I cannot lose the existing emails on the server. Can someone please give me some advice on how I can get this setup into the 21st century where it is manageable?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you know if your old server uses Maildir or mbox format as storage? If you are not sure, please post a "ls" from the directory were the mails are stored.

    1) If its maildir format, then you can copy the maildir right into the maildir folder of the ispconfig email account.
    2) If its mbox, then there are scripts in the internet to convert to maildir, e.g. the script mb2md
    3) If your old server provides imap, then you can use the application imapsync to copy the emails. This is indepandant of the local mail storage format and should work with any imap capable server.
  3. Odendaal1

    Odendaal1 New Member

    I assume that it is Maildir as that is the name of the folder located in the user folder. I also know that the server is setup for imap so it should provide me with that option as well.

    So, if I backup the mail (user folders), reinstall the server and install ISPConfig I can simply restore the backups to the newly created maildir folders of ISPConfig?

    Now that sounds like a solution I can live with. Thanks for your quick reply.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. After you copied the folders, change the user and group of all files and folders to "vmail".
  5. herbie

    herbie New Member

    I may need to do the same thing as I'm thinking of replacing my older 'perfect mailserver' setup with a new ispconfig box. There's about 100 users.

    copy recursive old /home/vmail/domain to new /var/vmail/domain

    Should I set the mail domain in ISPconfig beforehand?
    What about the users & passwords? How could I import those into the ISPconfig setup? Or must I enter those one by one afterwards?

Share This Page