×
Automation Blog Server Scripting Technologies Web Hosting Support

Finding out the total number of email accounts list/count on a cPanel server

About Script:-

To find the total number of email user account list with the count under all cPanel domain users (or) specific cPanel domain user using the below script, on any cPanel servers.

Utilization:-

1. SSH to your server and download the script.

# cd /usr/local/src/
# wget https://github.com/SSS015/compressed/archive/master.zip

2. Extract zip file and type “cd” command go to “compressed-master” directory.

# unzip master.zip
# cd compressed-master

3. To unpack a tar file using the below command.

#tar -xvf email_account_list.tar

4. Change the file permission and execute the bash script using the below commands.

#chmod +x final.sh
#bash final.sh

5. You can see the output report on the terminal, after completing the script execution process. This output report will create a list of all of the email accounts on the server and what username they’re associated with.

>> If there is any bug or suggestion to improve this script, feel free to mail me at manivannan.s[ at ]assistanz.com.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.