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.

Finding all catchall forwarders

Discussion in 'General Discussion' started by Wallaby, Oct 17, 2007.

  1. Wallaby

    Wallaby Well-Known Member

    Joined:
    Aug 15, 2001
    Messages:
    131
    Likes Received:
    1
    Trophy Points:
    18
    I'm trying to find all domains for which a "catchall" email forwarder has been set, so we can encourage the relevant users not to use one!

    Catchalls in /etc/valiases seem to have the form:

    domain.com:*: somename@your-isp.com

    so I've tried using grep to output the lines from the files which contain "colon asetrisk colon space" (ie ':*: ') using:

    grep -i ':*: ' *

    but this also gives me a load of lines that do *not* contain the magic search string!

    Where is my grep syntax wrong please?
     
  2. Wallaby

    Wallaby Well-Known Member

    Joined:
    Aug 15, 2001
    Messages:
    131
    Likes Received:
    1
    Trophy Points:
    18
Loading...

Share This Page