Migrating old email domains and addresses to new server

Discussion in 'General' started by icarlx98, Oct 8, 2018.

  1. icarlx98

    icarlx98 New Member

    I want to migrate old email addresses and email domains to a new server, while still being able to control the accounts with ispc3. Any ideas?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. icarlx98

    icarlx98 New Member

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Are the old and new server connected to the same (old) master or are they connected to a different master server?
     
  5. icarlx98

    icarlx98 New Member

    They are both connected to the same master server.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, then you can't use the Migration Tool. The reason is that a multiservers etup is basically just one ispconfig server split to multiple hardware nodes. The Migration tool would try to import the data but in fact, it is already there on the master, so this would fail.

    There are three other options though:

    a) You transfer the whole operating system incl. ISPConfig and the mail accounts inside to the new server, e.g. by using rsync or a Linux backup tool.
    b) You use the tool 'ISPCopy' which is also part of the Migration Toolkit. ISPCopy uses a different Approach to migrate a system than the Migration Tool, ISPCopy basically copies the whole ISPConfig installation and data to the new server 'as it is'.
    c) As you want to migrate email data only, there is also a 'quick and dirty' approach for this:
    - Install the new mail server node and attach it to the current master.
    - change the server_id value of all records in the dbispconfig database on the old master to the ID of that new node (all maul_* and spamfilter_* tables).
    - Run tools > Resync in ISPConfig master to let ISPConfig create the mail accounts on the new slave node.
    - Finally, use rsync to move the whole /var/vmail folder over from old to new server.
     
  7. icarlx98

    icarlx98 New Member

    Thank you!
     

Share This Page