Obtain number of email accounts on server
Hello,
How can I obtain the number of email accounts on a cPanel server? Spamhaus require a total number of users for their data feed license.
-
Hello, Several threads reference the use of the following command to see a total number of all email accounts on the system: sed "s|:||g" /etc/userdomains | awk '!/^\* nobody/{print $1, $2 | "sort | uniq" }' | awk '{print "cat /home/"$2"/etc/"$1"/passwd"}' | sh 2>/dev/null | wc -l
Thank you.0
Please sign in to leave a comment.
Comments
1 comment