move maildomain and accounts in multiserver setup

Discussion in 'ISPConfig 3 Priority Support' started by pinkfeet, Feb 1, 2018.

  1. pinkfeet

    pinkfeet Member HowtoForge Supporter

    Hi !,
    i need move a maildomain and it's accounts to other mailserver in a multiserver setup. I cannot create the that maildomain in the other server because is duplicated yet, so is there any way to do this ?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no function to do that from within ISPConfig yet. I guess the best way to do that at the moment would be to change the server_id of the records (mail_domain, mail_user, etc.) im mysql on the master, then use tools > resync to create them on the new slave and then copy over the data from /var/vmail/ from old slave to new slave server. I think this should work, but haven't used that method yet.
  3. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    This is working - i did this a several times. But you should drop the old values from the old-mail-server if this is not the master.
    I usually do something like this:
    change server_ids
    use dovecot dsync
    change ip
    wait for dns-propagation
    remove the old values from a dedicated mail-server (not the master)
    disable dovecot dsync
  4. pinkfeet

    pinkfeet Member HowtoForge Supporter

    Till, Florian, that works smoothly.

    I didn't know dovecot dsync and used the rsync from command line to syncronize mailboxes from old server to new one.

    Thanks a lot,

Share This Page