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.

Default email space is out of control. Can we change all default emails to fail

Discussion in 'E-mail Discussions' started by DWHS.net, Mar 30, 2008.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Thousands of accounts added the default email as catch all, but now we have accounts with 2 plus gigs of email they don't even care about.

    Anyone see a script that change catch all as the default to fail ? I have seen it before actually here on this forum.

    Also is there a way to remove all the catch all emails server wide?

    Thanks!
     
  2. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    Try from this:

    http://forums.cpanel.net/showthread.php?t=52170


    Code:
    replace :blackhole: :fail: -- /etc/valiases/*
    replace :blackhole :fail: -- /etc/valiases/*
    replace blackhole: :fail: -- /etc/valiases/*
    replace blackhole :fail: -- /etc/valiases/*
    replace " fail:" " :fail:" -- /etc/valiases/*
    replace /dev/null :fail: -- /etc/valiases/*
    cd /etc/valiases/
    grep fail * | grep -v " :fail:"
     
Loading...

Share This Page