The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to check if an account has email from SSH

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

  1. domeneas

    domeneas Active Member

    Joined:
    Sep 20, 2013
    Messages:
    27
    Likes Received:
    1
    Trophy Points:
    3
    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,146
    Likes Received:
    34
    Trophy Points:
    48
    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
     
    domeneas likes this.
  3. domeneas

    domeneas Active Member

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page