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.

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

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

  1. nat

    nat Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    16
    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:
    1
    Location:
    India
    You can try the below attached perl script for converting all domain Default Accounts to :fail
     

    Attached Files:

  3. nat

    nat Well-Known Member

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

    bartdc Member

    Joined:
    May 17, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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:
    128
    Likes Received:
    0
    Trophy Points:
    16
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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
     
  8. mattlindi

    mattlindi Member

    Joined:
    Jan 20, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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:
    2
    Trophy Points:
    18
    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