Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jun 2007
    Posts
    5

    Smile howto disable mail for a domain

    Hello,
    I want to know, is it possible to disable mail functionality for a domain or account??
    One of the domain on the server got hacked and sending spam mails using php script.i don't need any mail send or receive by that domain.
    Please help ......

  2. #2
    Member viraj's Avatar
    Join Date
    Sep 2006
    Location
    India
    Posts
    209
    cPanel/Enkompass Access Level

    DataCenter Provider

    Cool Solution..

    You can disable emails for a particular account from the server itself. Edit the /etc/localdomains file & remove the domain's entry from it. This file is queried every time a mail is either received or sent.

    Other ways is to add a catch-all to that domain, here's how to do it..

    1. Login to your cPanel.
    2. Go to Mail, then select Default Address.
    3. Click on the Set Default Address link.
    4. Enter a new valid email address to redirect all unrouted mail to in the text field next to web site domain name drop-down list. Select the correct root domain name if you have sub-domains.

    Alternatively, you can also set the default address as :blackhole: to throw away all incoming unrouted mail, or :fail: bounce message (replace bounce message with your own text, such as no such user here, or left blank) to bounce the unroutable email back to the sender.
    5. Click on the Change button, and your Main Account will no longer receive any email.

    There's another way of doing it too by setting up a filter :
    CPanel > Mail > E-mail Filtering > Add Filter > Select From that Contains @ with Destination "Discard".

    I'd recommend you instead of setting the catch-all to :fail, you should set it to :blackhole, so that spam doesn't even generate any bounce-back messages - it just disappears to no where

Similar Threads & Tags
Similar threads

  1. Disable E-mail for entire domain
    By webcatal in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-31-2007, 01:25 PM
  2. HOWTO Disable MailScanner
    By hari_anj in forum cPanel Developers
    Replies: 1
    Last Post: 04-06-2006, 05:41 PM
  3. HOWTO: Disable PostGreSQL Link
    By dgbaker in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-10-2004, 05:29 PM
  4. HOWTO disable ProFTP on cpanel boxes ...
    By trakwebster in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-29-2003, 02:37 PM
  5. howto disable mailman ?
    By asys1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-23-2002, 05:27 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube