Finding the number of email accounts on cPanel server

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

2 – Unzip the zip file and access the created directory

Then unzip the tar file

Change file permissions and run

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.