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!

A script that sets all default mail boxes to :fail:

Discussion in 'E-mail Discussion' started by nat, Sep 16, 2006.

  1. nat

    nat Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    210
    Likes Received:
    0
    Trophy Points:
    166
    Is there a script that sets all default mail boxes for all current accounts to :fail:
     
  2. rootsupport

    rootsupport Member

    Joined:
    May 2, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    India
    You can try the below attached perl script for converting all domain Default Accounts to :fail
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nat

    nat Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    210
    Likes Received:
    0
    Trophy Points:
    166
    That worked perfectly. Thanks!
     
  4. bartdc

    bartdc Member

    Joined:
    May 17, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    In addition to this, is there any way to set all default mail boxes who don't forward to another e-mail address to :fail: ? So that settings that users made themself won't be lost?

    Thanks,
    Bart
     
  5. mattlindi

    mattlindi Member

    Joined:
    Jan 20, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    151
    it's actually more proper to set them to :blackhole:

    setting them to fail a) increases traffic on the network because it sends a reply and b) notifies the sender that there is a real mailserver listening (spammers love that).

    just my $.02 - YMMV
     
  6. xisn

    xisn Well-Known Member

    Joined:
    Dec 4, 2004
    Messages:
    136
    Likes Received:
    5
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Actually, :fail: is the best option, for more information, see the write up here:
    http://www.configserver.com/free/fail.html

    You can also find TONS of stats to prove that :fail: is the better option...


     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Indeed. :blackhole: is terrible, :fail: is the only way you should go.

    Just a note on the above script - I wrote that, it would be nice to keep the attribution when you repost a script written by someone else ;)
    http://forums.cpanel.net/showthread.php?t=30987
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. mattlindi

    mattlindi Member

    Joined:
    Jan 20, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    151
    Ahh -

    I thought the opposite was true. (scurries off to change everyone to :fail: - yipes! )

    Thanks
     
  9. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    It's so confusing, aint it? Thank goodness for Chirpy! Cant thank you enough for all the help you give this forum. :D
     
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