Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'E-mail Discussion' started by WebHostPro, Mar 30, 2008.

  1. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,660
    Likes Received:
    16
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    168
    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:"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice