Este post também está disponível em:
To easily find the number of email/user accounts on a server with cPanel, we are going to use a script that will make this task very simple.
1 – Access your server’s SSH and download the script
cd /usr/local/src/ wget https://github.com/SSS015/compressed/archive/master.zip
2 – Unzip the zip file and access the created directory
unzip master.zip cd compressed-master
Then unzip the tar file
tar -xvf email_account_list.tar
Change file permissions and run
chmod +x final.sh sh final.sh
The script will ask if you want to know the number of email accounts for a specific domain or user. Enter n to view the full report with all users/accounts.
This script is quite simple and useful in managing linux servers with cPanel.