Question
I transferred an account(s) using the Transfer Tool with the Live Transfer option enabled. and I need to revert the changes that were made.
Answer
Live Transfers result in the suspending of accounts on the source server, services are proxied to the destination server, MX is redirected to the destination server, and DNS is also updated to the destination server.
If you're here, you might be interested in these articles as well:
What is the Live Transfer option?
How to disable the Live Transfer feature in Transfer Tool
How to disable Live Transfer by default
To revert the changes made by Live Transfer, perform the following steps on the source server:
1. Unsuspend the account. Use either of the following methods:
- The
unuspendacct
script. - WHM’s Manage Account Suspension interface (WHM >> Home >> Account Functions >> Manage Account Suspension).
2. Manually unset the service proxies using the unset_all_service_proxy_backends WHM API call:
whmapi1 unset_all_service_proxy_backends username=$USER
3. Remove the dynamic content blocks in .htaccess with the following command:
/scripts/xfertool --unblockdynamiccontent $username
4. Remove the manual MX redirects that the Live Transfer option created. Run this command for every domain that used the Live Transfer option:
whmapi1 unset_manual_mx_redirects domain=domain.tld
5. Update the DNS records to point back to the source server. Point the A records for any proxied accounts to the source server. Use either of the following methods:
- The swapip script.
- WHM’s DNS Zone Manager interface (WHM >> Home >> DNS Functions >> DNS Zone Manager).
If you need to run API calls on all accounts on the server you can reference this article:
How to use a while loop in BASH to iterate over all cPanel users on a server
To unset service proxies for all accounts on the server, run this command:
cut -d":" -f1 /etc/trueuserowners | while read user;do whmapi1 unset_all_service_proxy_backends username=$user;done
To unset all domains that are having mail rerouted to a destination server, run the following command:
cut -f1 -d":" /etc/manualmx | while read domain;do echo; echo "Unsetting ManualMX for $domain";echo;whmapi1 unset_manual_mx_redirects domain=$domain;done
Comments
0 comments
Article is closed for comments.