I need to migrate emails from an old to a new server

Discussion in 'General' started by voltron81, Feb 12, 2010.

  1. voltron81

    voltron81 New Member

    Hi to everybody,
    I'm ready with my ISPConfig mailserver.
    Now I need to copy emails from the old mailserver to the new one.

    Is enough just copying files from the old /var/vmail to the new one?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    yes, just copy the whole directory tree. make sure that the files are still owned by user and group vmail afetr you copied them.
  3. voltron81

    voltron81 New Member

    thanks Till for your answer.

    Basically I've created before in the new server all the domains and email addresses, then I've canceled in /var/vmail and copied it from the old one.
    At the end chown -R vmail:vmail /var/vmail and it's working.

    Now one question: to make the quota working, I've to setup the quota in ISPConfig for all of them again... is there a faster way to do it?

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The quota files are stored in the maildirs, so no need to redo it on the new server as you copied all email quota info together with the maildirs. For email, Linux quota is not used.
  5. voltron81

    voltron81 New Member

    Hi Till,
    what do you mean Linux quota is not used?
    I'm copying across the whole /var/vmail, but of course the old file /var/vmail/domain/user/maildirsize has the old configuration of the quota... so I notice that if I setup in ISPConfig the quota again, that file will be overwrite with the new quota configuration...
    Is it correct or am I wrong?

  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats correct. But if you moved a setup, you must have mocved the ispconfig database to the new server as well, so everything is in sync. If you did not move the ispconfig database, you will have to recreate all accounts and passwords of course.
  7. voltron81

    voltron81 New Member

    In the old server I don't have ISPConfig.
    I have it just on the new one.

    So what I'm doing is
    1) in the new server I'll create the scenario (domains and emails)
    2) I move the /var/vmail/domain from the old to the new one
    3) I setup the correct permission on /var/vmail/domain
    4) In the ISPconfig I'll setup the quota

    That's it... (I hope)

Share This Page