/https://github.com/ziGuy/cPanel
This script will go through all cpanel accounts and check whether
each account is active according to dns records (a and mx), resolving from
an external dns server.
Please note that if an account is using an external redirection
like cloudflare, it will be considered as inactive.
ns records are NOT being checked.
In the end of the scanning you can choose to automatically suspend all,
inactive accounts, and in the next run you can choose to terminate those.
You can also terminate only suspended accounts that have been suspended 3 month ago.

This script will go through all cpanel accounts and check whether
each account is active according to dns records (a and mx), resolving from
an external dns server.
Please note that if an account is using an external redirection
like cloudflare, it will be considered as inactive.
ns records are NOT being checked.
In the end of the scanning you can choose to automatically suspend all,
inactive accounts, and in the next run you can choose to terminate those.
You can also terminate only suspended accounts that have been suspended 3 month ago.

Last edited by a moderator: