How to find all email accounts inside cpanel ( SSH )

Hello,

 

How to find all cpanel email accounts with a single one command.

 

You can run the following command to find all email accounts you need

 

for i in $(find /var/cpanel/users -type f | egrep -o '[a-zA-Z0-9]+$' | grep -v system);do whmapi1 list_pops_for user=$i;done

 

Best Regards

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Empty / Delete files .trash folder cPanel users

The .trash folder in /home/$username/.trash contains any files that a user has deleted via their...

How to fix cPanel 500 internal server error

How to fix cPanel 500 internal server errorYou need to run the following command in SSH to fix...

How to change the ip for SMTP server IP [Exim] at cPanel/WHM

Here we are going to explain How to change the ip for SMTP server IP [Exim] at cPanel/WHM...

How to fix YumRepo Error and Cannot find valid baseurl

When you try to update or install any software inside your centos 6/7 you might will see the...

How to install WordPress Toolkit inside cPanel/WHM

The WordPress Toolkit interface allows you to easily install, configure, and manage WordPress®....