Moving a parked domain to it's own account issues

adonius

Member
Dec 21, 2016
16
3
3
USA
cPanel Access Level
Root Administrator
I've been looking in the forum and see a lot of threads with this problem and some of the threads link to a discussion and they all have been killed off for some reason
each parked domains to their own and it always ended in having to manually redo everything

I saw a thread about just rename the users domain to the new one

When we try that it says the original name must be removed from dns

Where in whm can we do that and will removing that original domain that we no longer use corrupt the email and database work for the parked domain???

I'm at a loss trying to unattach parked domains to to un attach parked domains to keep email and mysql intact

THANKS
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

You can see a list of what happens to the email accounts associated with an alias for multiple scenarios at:

Domain alias email accounts

Could you let us know if this helps?

Thank you.
 

adonius

Member
Dec 21, 2016
16
3
3
USA
cPanel Access Level
Root Administrator
I'm really at a lost on this, I've setup thousands of accounts over the years, in fact in 90's Nic did my first servers scripts while he was at SpeedHosting and some became original cPanel hehe

Anyway, over the years we created lots of domains and some had parked, but when we try to move a parked to it's own, crash

So the latest I read on cpanel in another thread recommended to just removed the domain in modify you no longer have and change it to the parked domain

We tried that today and was hit with a must remove from DNS the name (I think the parked)

So in that case the original user/domain we killed but now the parked has all the development and emails

Then we have another site that was parked and that name is our main domain name but the original we still control and it has minor development and our main email account that thousands of emails are forwarded to

Imagine a domain with twitter/google/facebook/youtube as a user and then a few more terms, so a typical domain we have 7 emails all forwarded over the years to one super email account via forwarders

So it's a mess and I'm just trying to get the 3 domains we still use into their own accounts without losing all the email accounts and forwarders and stuff

It's a nightmare

But now we're on a new WHM server for most of the network and with shared we started to actually organize the network

We have 10 industries we run portals in and each industry has 10 to 50 domains

So most of the network now is beautifully organized thanks to shared domains and now we're just trying to clean up the last few domains that are main corporate domains and basically catch all the email from the thousands of social media accounts we creatd over the years for the portal development

So I'm on eggshells here, I do something wrong with one of these big 3 domains and I'm afraid thousands of forwarders will crash
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

You can backup the account using the following command before making any changes in-case something:

Code:
/scripts/pkgacct $username
The option is documented at:

The pkgacct Script - Documentation - cPanel Documentation

Here's the relevant section from the document referenced in my last response that explains the data retention policy for email accounts and domain aliases:

If you remove the domain alias, its email accounts will no longer appear in cPanel's Email Accounts interface (Home >> Email >> Email Accounts). However, the email accounts' contents still exist in the mail folder of the user's home/username/mail/ directory.

  • If you add the domain again, to the same account as the primary domain, an addon domain, or an alias, the email accounts reappear in the interface.
  • If you change the account’s primary domain name to the un-aliased domain name, the email accounts reappear in the interface.
    • You or your hosting provider can perform this action in WHM’s Modify an Account interface (Home >> Account Functions >> Modify an Account).
    • When you perform this action, the former primary domain name’s mailboxes will not appear in cPanel's Email Accounts interface (Home >> Email >> Email Accounts). However, the files will still exist.
  • If you move the domain to a different account, you must add the email accounts manually and move the contents of the email accounts manually.

    Note:

    The email accounts must follow the same name and domain formats that they previously followed.
Let us know if this helps.

Thank you.
 

adonius

Member
Dec 21, 2016
16
3
3
USA
cPanel Access Level
Root Administrator
ok so what I'm reading is when I backup the original user and accounts of the parked domain are 'backed up'
I guess the parked domains mysql is as well right?
So once that is done I removed the parked domain?
Doesn't that erase all that accounts emails?
Then once I unpark the domain I can put that domain as the domain of the 'user' via modify?

Seems to me that the parked domains email info should be erased once I unpark it???

Or am I looking at this wrong?

Just like once I say unpark a domain with mysql, it should erase the mysql and data???

I'm just not getting it

The emails and mysql belong to a parked domain and the user it is parked on

Once I unpark it to put it's domain as the new domain for the original user, it should have no data

That means all the email and mysql is gone

Now you're saying it's not?

I'm lost on this, obviously
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
ok so what I'm reading is when I backup the original user and accounts of the parked domain are 'backed up'
I guess the parked domains mysql is as well right?
Yes, assuming you see no errors output when backing up the account, it will include the domain aliases plus all email accounts and databases associated with the cPanel account.

So once that is done I removed the parked domain?
Doesn't that erase all that accounts emails?
Yes, you can proceed to remove the domain alias after confirming the backup completed successfully. If you remove the domain alias, it's email accounts will no longer appear in cPanel's Email Accounts interface (Home >> Email >> Email Accounts). However, the email accounts' contents still exist in the mail folder of the user's home/username/mail/ directory.

Then once I unpark the domain I can put that domain as the domain of the 'user' via modify?
Yes, you can then use "WHM >> Modify an Account" to change the domain name associated with the cPanel account to the one you just removed. When you change the account’s primary domain name to the domain name you just removed as an alias, the email accounts reappear in the interface.

Seems to me that the parked domains email info should be erased once I unpark it???
No, the email accounts are removed from the cPanel interface but the email data itself isn't removed.

Just like once I say unpark a domain with mysql, it should erase the mysql and data???
No, MySQL databases are associated with the cPanel account username and not individual domain names. Thus, they aren't removed when you remove an alias.

Thank you.
 

adonius

Member
Dec 21, 2016
16
3
3
USA
cPanel Access Level
Root Administrator
Ok I'm starting wrap my mind around what is kept and erased with unpark and modify

I will soon try this since we are doing backupguard on that domain now and as long as the emails are still intact we can hopefully see the wp instance not destroyed by a modification
 
  • Like
Reactions: cPanelMichael