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.

blackhole email address

Discussion in 'E-mail Discussions' started by Incognito969, Dec 15, 2003.

  1. Incognito969

    Incognito969 Well-Known Member

    Joined:
    Jun 15, 2003
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    How do I set an email that will forward everything sent to that address to /dev/null?
     
  2. hot_wired13

    hot_wired13 Active Member

    Joined:
    Oct 17, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    127.0.0.1
    theoretically, this should work:
    assuming your domain is example.com, and the email u wanna direct to /dev/null is called null@example.com
    Code:
    pico /etc/valiases/example.com
    [email]null@example.com[/email]: |/dev/null
    
    NOTE: you DO NOT have to create that email address in CPanel

    et voila. all done. :)

    post here of ur outcome, thanks.

    regards,
    kelvin
     
  3. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    ** |/dev/null (user@domain.com) <user@domain.com> R=virtual_aliases_nostar T=virtual_address_pipe: Child process of virtual_address_pipe transport returned 127 (could mean unable to exec or command does not exist) from command: /dev/null
     
  4. Incognito969

    Incognito969 Well-Known Member

    Joined:
    Jun 15, 2003
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
  5. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    An alternative method is to use Cpanel > Default Address and the set the main Domain to :fail: or :blackhole:

    This way, it will apply to any eMail address used with that Domain name.
     
  6. bear

    bear Well-Known Member

    Joined:
    Sep 24, 2002
    Messages:
    113
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    ..unless you specify a forwarding alias. If you wanted all mail except 'sparky@' to get discarded, set the default to :blackhole: and a forwarder for 'sparky' to another POP account. This way, catchall is disabled (effectively), and only the mail to an alias you want is passed.
     
Loading...

Share This Page