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!

Getting all e-mail accounts on a server

Discussion in 'E-mail Discussion' started by garethl, Aug 2, 2007.

  1. garethl

    garethl Registered

    Joined:
    Jun 30, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    Hi

    I am wanting to get all the e-mail accounts for all hosting accounts on our server (excluding things like aliases etc.)

    Is this possible through a script, or is there a file with a list of all accounts somewhere? I don't want to manually go into each account and look at the e-mail account settings...

    Thanks
     
  2. jandafields

    jandafields Well-Known Member

    Joined:
    May 6, 2004
    Messages:
    428
    Likes Received:
    4
    Trophy Points:
    168
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Easy! This will list all main accounts, and all email accounts underneath each one...

    ls /home/*/mail/*.*/
     
  3. garethl

    garethl Registered

    Joined:
    Jun 30, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    hmmm, now why didn't i think of that :)

    Thanks, thats pretty much what i was looking for...
     
  4. umerkhokhar

    umerkhokhar Member

    Joined:
    Apr 19, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Pakistan
    Where to write

    Where to write this command: /home/*/mail/*.*/
     
    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