Migration of Mail from single server set up to multi server set up

Discussion in 'Installation/Configuration' started by vert, Aug 18, 2013.

  1. vert

    vert New Member

    This thread is touching the subject, I'm just not entirely sure that this is the way to go, as it seems the OP took a deroute: http://www.howtoforge.com/forums/showthread.php?t=62601

    I have a single server running web, mail, db and dns. I want to migrate the mail settings and content to a second server, thus creating a multi server set up.

    The second server has been set up fresh with the same ISPconfig and OS version, every mail service has been installed and the server is configured as a slave to the original single server.

    What is the best practice for migrating mail configuration and content to the new server?

    In a bit broader perspective, I plan on moving the DNS to a separate server - how should one deal with migrating services between individual servers in a multiserver set up?

    Thanks in advance for input!
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Install ispconfig on the second server in expert mode and let it join your master server.
    2) The new server will get server_id = 2 in the server table if its the second one, this id is important for the next steps. Make a backup of the dbispconfig database on the master and slave server.
    3) edit all records in the tables were the name starts with mail_* or spamfilter* on the master server that have a column server_id, change the id in these fields from 1 to 2 to assign them to your new server.
    4) Run the resync tool for the "mail" accounts in ispconfig, you find it in the tools menu. This will create new mailboxes on the slave server.
    5) Copy everything in /var/vmail from the master server to the slave server. Ensure that the permissions and ownerships of the files and folders are preserved.
  3. vert

    vert New Member

    Thank you very much!

Share This Page