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.

Number of email accounts per domain

Discussion in 'E-mail Discussions' started by alexxo, Feb 22, 2012.

  1. alexxo

    alexxo Registered

    Joined:
    Feb 12, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Anyone who can assist me with a way to report on the number of email accounts provisioned per domain.

    Thanks
     
  2. ruzbehraja

    ruzbehraja Well-Known Member

    Joined:
    May 19, 2011
    Messages:
    383
    Likes Received:
    7
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Email accounts are listed in:
    /home/user/etc/yourdomain.com/passwd
    /home/user/etc/yourdomain.com/shadow
    /home/user/.cpanel/email_accounts.yaml

    You can use a grep command to pull the information.
    However they also have other values which maybe unnecessary.

    The email accounts also have their own directories in the mail folder.

    This command should help for that:
    find . -type d /home*/*/mail

    You may need to refine it as per your needs.

    I would also like to know if there is any other way to get the list of email ids.
     
Loading...

Share This Page