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.

List All Emails

Discussion in 'E-mail Discussions' started by gavcom, Mar 20, 2015.

  1. gavcom

    gavcom Member

    Joined:
    Mar 4, 2015
    Messages:
    10
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hi im looking for a addon or bash script that will list all the emails in all my domains recursively throughout my server

    reasons:
    1. need to beable to send out a global email to all my users i dont have resellers im the main
    2. contact for main person's' so outdated want to send an email to each account requesting them to fill out a online forum to update a database, i can then use this to send out server outages or reports or news im trying to target the person whom is responsible for the domain
     
    brainpaul likes this.
  2. brainpaul

    brainpaul Registered

    Joined:
    Mar 19, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mumbai
    cPanel Access Level:
    Website Owner
    hi,
    i am also looking for same....if you got some than please suggest me
     
  3. MilesWeb

    MilesWeb Well-Known Member
    PartnerNOC

    Joined:
    May 23, 2012
    Messages:
    174
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Kindly refer sudosu.in/2013/11/cpanel-bash-script-to-list-all-mail.html once. Here is the script which will get a list of all email accounts on the server.
     
    #3 MilesWeb, Mar 20, 2015
    Last edited by a moderator: Mar 20, 2015
  4. gavcom

    gavcom Member

    Joined:
    Mar 4, 2015
    Messages:
    10
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    You are the man... thanks a bunch that worked like a charm, just my 4 cents

    1. cd /root -> mkdir temp -> cd /temp -> pico/nano/vi myscript.sh
    2. make sure to chmod u+x myscript.sh
    3. make sure to chown root.root myscript.sh
    4. ./myscript.sh

    dont worry about errors just look for the file mailaccounts.txt

    and you are A, for away...

    thanks again milesgeek,
     
  5. MilesWeb

    MilesWeb Well-Known Member
    PartnerNOC

    Joined:
    May 23, 2012
    Messages:
    174
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Thank you for your inputs & good to see that it worked as per your requirements.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page