Results 1 to 4 of 4

Thread: How to reject all mail for root and parked domains.

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    2

    Default How to reject all mail for root and parked domains.

    OK, let's say I have a cpanel account with a root domain, and it has several hundred parked domains on it.

    I don't want to get any mail from any of the domains, so basically I can ditch it all.

    At the moment, the default mailbox where the mail is going is the username of the account, as it is for all parked domains that have been added.

    This is filling up by over 1500 a day, and I am manually deleting all the mail.

    What I need is a solution, instead of going through the list and changing the default address to :blackhole:, what else can I do to stop all mail to the root domain and all parked domains.

    Many thanks.

  2. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,052

    Default

    Two solutions:

    - Create a cron and zero the file once a day.

    - Write a bash/perl script to edit all your valiase files and send everything to the bit bucket.

    The rest of those who have gone before us cannot steady the unrest of those to follow.

  3. #3
    Registered User
    Join Date
    Dec 2003
    Posts
    2

    Default

    Hi again

    It seems like my only option is the cron option.

    Is there anybody who could assist or advise me on the task in hand?

    I would need to know (never having used any cron functions) how to delete or zero the inbox file.

    All help is very much appreciated, thanks in advance.

  4. #4
    Member
    Join Date
    Feb 2003
    Posts
    180

    Default

    I did one better, I wrote a script that removes specific domains from /etc/localdomains

    Each night I first run

    /scripts/updateuserdomains
    /scripts/mailperm

    Then I remove all the domains I don't want mail from...
    Thomas Tremain

Similar Threads

  1. Parked/add-on domains break named/bind? "root" in zone files?
    By Guile in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 11-06-2005, 01:35 PM
  2. parked domains / mail question
    By lokust in forum New User Questions
    Replies: 3
    Last Post: 09-02-2005, 07:58 PM
  3. reject mail from certain domains
    By torwill in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 07-09-2004, 12:42 AM
  4. Mail filters and parked domains
    By myplacedk in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 06-11-2004, 05:56 AM
  5. Mail filters not working for parked domains
    By skymedia in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 10-12-2003, 03:56 PM