Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to check if an account has email from SSH

Discussion in 'E-mail Discussion' started by domeneas, Jan 21, 2016.

  1. domeneas

    domeneas Active Member

    Joined:
    Sep 20, 2013
    Messages:
    37
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    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.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,858
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    Yes, You can check total email account count and list of any user through SSH with the following command.

    Total Email Account Count.

    Code:
     cat /home/cPuser/.cpanel/email_accounts_count
    Email Account List :

    Code:
    ll /home/cPuser/mail/ | grep lrwxrwxrwx
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    domeneas likes this.
  3. domeneas

    domeneas Active Member

    Joined:
    Sep 20, 2013
    Messages:
    37
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Thank you very much. Very useful.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,720
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to see those commands were helpful. Feel free to let us know if you have any additional questions.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice