postkillacct - get domains and park on another account

dansgalaxy

Well-Known Member
Jan 29, 2007
91
0
156
Reading, UK
cPanel Access Level
Root Administrator
I'm looking for a way that I can have a script which automatically parks any domains (main domain, parked domains & addon domains) which are on an account on termination to another cPanel account.

Basically want it so when delete clients accounts if they have domains still pointing to our DNS we can direct them to a parking/terminated page.

If possible would be good to check if the domain points to an IP on the server before parking it.

Any tips on how I can achieve this.
 

cPanelDavidN

Well-Known Member
Staff member
Dec 17, 2009
571
3
68
Houston, TX
cPanel Access Level
Root Administrator
Hi dansgalaxy,

The best thing that comes to mind is a prekillacct and postkillacct script hook.
1) prekillacct to record which domains are about to be removed due to termination
2) postkillacct to add park domains (to the "default" cPanel account you mention)

You can add any IP checking or other criteria to those scripts.

Regards,
-DavidN