Skip to main content

Obtain number of email accounts on server

Comments

1 comment

  • cPanelMichael
    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.