When working with the Mailnode, if you happen to remove an account or unlink a domain without using the Linked Nodes from within the WHM, you may end up with a similar error to occur:
Cpanel::Exception/(XID kcckj5) Account Restore Failed: "Account failure: Failed to create the account: (XID 3vage7) The domain "cpaneltech.net" already exists in the userdata."
This output is expected. When an account is de-distributed or unlinked from a child node, the account must be removed manually from the child.
For more details about the process of redistributing an account, you may refer to our documentation:
Please make a backup of the account on server "mailnode," then remove the account. After the account is terminated, you can offload the emails once more from the "parent node."
Login to SSH on "mailnode" then:
After the backup completes, remove the account:
You should be all set on the mail node at this point. Now login to WHM on the parent node then:
Modify account to offload email
If you don't need the backup, please remove the account without making a backup on mail node. However, it is strongly recommended that you create a backup.