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 forwarders?

Discussion in 'General Discussion' started by willke, Apr 17, 2006.

  1. willke

    willke Well-Known Member

    Joined:
    Mar 30, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Is it possible somewhere to list all forwarding emails address for all accounts on a server without having to go through each account one-by-one?

    Thank you.

    Will.
     
  2. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Run one of these commands:
    Code:
    cat /etc/valiases/* > forwarders
    
    or 
    
    more /etc/valiases/* > forwarders
    

    Both will create/overwrite a file named forwarders and populate it with a list of forwarders. The more command will show the domains in the file so you will be able to determine the domain that the default (*) address is being forwarded to.
     
  3. willke

    willke Well-Known Member

    Joined:
    Mar 30, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Thanks. :)

    Is it possible to get a list printed to file?

    W.
     
  4. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    read my post again. th e> forwarders puts it in a file.
     
  5. willke

    willke Well-Known Member

    Joined:
    Mar 30, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Excellent. Thanks. Worked great :)

    W.
     
Loading...

Share This Page