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.

Getting all e-mail accounts on a server

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

  1. garethl

    garethl Registered

    Joined:
    Jun 30, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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:
    426
    Likes Received:
    2
    Trophy Points:
    18
    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:
    1
    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:
    1
    Location:
    Pakistan
    Where to write

    Where to write this command: /home/*/mail/*.*/
     
Loading...

Share This Page