How to check if an account has email from SSH
Hi,
we are moving inactive accounts to a separate server and need to be able to find out if an account has made any email addresses via SSH. I cannot find any way to do this. I would love to get a hold of the "Email Accounts" stat that is shown on the users cpanel.
Anyone have a hint?
Thanks.
-
Hello :), Yes, You can check total email account count and list of any user through SSH with the following command. Total Email Account Count. cat /home/cPuser/.cpanel/email_accounts_count
Email Account List :ll /home/cPuser/mail/ | grep lrwxrwxrwx0 -
Thank you very much. Very useful. 0 -
Hello :) I am happy to see those commands were helpful. Feel free to let us know if you have any additional questions. Thank you. 0
Please sign in to leave a comment.
Comments
3 comments