Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    BANNED
    Join Date
    Jul 2005
    Posts
    537

    Default Is there a way to set /dev/null to :fail:?

    We have a bunch of people who have set /dev/null. We also have a bunch of people who have set various combinations of blackhole and fail to things like;

    blackhole:
    :blackhole
    blackhole
    fail:
    :fail
    fail
    /dev/null

    I used the replace command on the server to correct it;

    replace :blackhole: :fail: -- /etc/valiases/*
    replace blackhole: :fail: -- /etc/valiases/*
    replace :blackhole :fail: -- /etc/valiases/*
    replace :fail :fail: -- /etc/valiases/*
    replace fail: :fail: -- /etc/valiases/*

    BUT there are a bunch of people who have set it to /dev/null

    Is there a way to use the replace command to set /dev/null to :fail:?

    replace /dev/null :fail: -- /etc/valiases/* does not fix it.
    Last edited by jackie46; 04-23-2006 at 12:33 PM.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    That ought to do it. This is what I use as a first pass:

    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:"
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Jul 2004
    Posts
    95

    Default

    my are set to *: :fail: no such address here

    there are some problem? if yes, how i chante to only :fail: ?

    Thank you!

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    That's correct. The actual entry in /etc/valiases/domain file should be:

    *: :fail:

    which is what you have.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. some mail /dev/null some mail not /dev/null....
    By bignose in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-15-2010, 09:37 AM
  2. what is /dev/null 2>&1 ?
    By cpane1 in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 12-19-2007, 03:32 PM
  3. Replies: 0
    Last Post: 03-08-2007, 08:29 AM
  4. /dev/null does not exist
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-07-2005, 06:50 PM
  5. Logging to /dev/null
    By keyDet79 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-05-2003, 08:26 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube