Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default Finding all catchall forwarders

    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. #2
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default

    Found the answer to my own question; this command

    grep ‘*:’ /etc/valiases/* | egrep -v ‘:fail:’

    lists all domains which do not have the catchall set to :fail:

    From http://blog.eukhost.com/webhosting/t...y-consumption/

Similar Threads & Tags
Similar threads

  1. Forwarders and Domain Forwarders in applist
    By intrwrks in forum cPanel Developers
    Replies: 1
    Last Post: 07-01-2009, 04:01 PM
  2. Boxtrapper: priority over forwarders/filters/catchall?
    By speleo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-26-2006, 06:45 AM
  3. Forwarders And Catchall
    By anup123 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-16-2006, 08:14 AM
  4. Forwarders And Catchall
    By anup123 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-15-2005, 10:30 AM
  5. Catchall problem
    By screege in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 01-22-2005, 10:06 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube