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 list all default addresses for account

Discussion in 'General Discussion' started by wemail, Jun 23, 2008.

  1. wemail

    wemail Well-Known Member

    Joined:
    Nov 28, 2006
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    GB
    cPanel Access Level:
    Root Administrator
    When using cPanel 11 and x3, the "Set Default Address" screen shows the value set for only one domain or subdomain at a time.

    Is there any easy way to display (or print) a list of all of these, including any set to "discard" or to a pipe?
     
  2. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    if you have shell access run this :
    grep -- '*' /etc/valiases/*

    All email addresses are stored in /etc/valiases/domainname
    with the catchall being the "*" entry at the end
     
  3. wemail

    wemail Well-Known Member

    Joined:
    Nov 28, 2006
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    GB
    cPanel Access Level:
    Root Administrator
    Thanks for that!
     
  4. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Welcome :)
     
Loading...

Share This Page