This worked flawlessly for me. I had an identical situation with a hosted client whose domain changed as the result of a trade name dispute.Remove the present addon domain from his cpanel.
Now in WHM modify accounts section change the primary domain name to that of addon domain.
Yep, I have done a lot of these lately, and it really works! I don't know WHY, but cPanel does NOT delete the mail accounts associated with the add-on domain, when you delete it. So, it's really easy to delete the Add-on domain... use Modify Account to change the primary domain for the account, to the former Add-on domain name.... and it works!With the method recommended above ("delete the addon and rename the primary") the problem is that you may lose all the stuff associated with the addon when you remove it.
Has anyone tested whether associated email accounts actually do get lost?
Ah ... that's so nice to know! I just tested and while it KEEPS the mail accounts (mail/domain.com/account/* and etc/domain.com) it DELETED the forwarders file (/etc/valiases/domain.com).I don't know WHY, but cPanel does NOT delete the mail accounts associated with the add-on domain, when you delete it.
|Thread starter||Similar threads||Forum||Replies||Date|
|Server Load 4.17 and swap 100%||General Discussion||2|
|M||kswapd0 high cpu||General Discussion||1|
|N||Do I really need a swap partition?||General Discussion||8|
|T||Swap Used Explained?||General Discussion||1|
|M||How to swap main domain with addon domain ???||General Discussion||1|