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.

How do I detele a mail domain without deleting the any other settings

Discussion in 'E-mail Discussions' started by clauderodney, Feb 6, 2008.

  1. clauderodney

    clauderodney Member

    Joined:
    Jan 17, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I have a problem where the circumstance require us to delete only the mail domain of a particular website which is hosted but not the complete website as the website/DNS will be running from the cPanel server.. I have been trying to find the option through the panel and i have found

    "Always accept mail locally even if the primary mx does not point to this server. (Domain owned by 'Owners Name')"

    But whenever we uncheck this option it does reflect.

    Kindly help me with this problem..
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Can you expand as to why you are attempting this? There may be alternative means by which to effect the desired behavior.

    Are you just trying to stop the user from receiving/sending mail via your server? Remove a MX entry?

    I ask because all mail gets routed through the server itself. Individual accounts do not have their own individual mail servers nor is their mail sent through their own subdomain (e.g. mail.theirDomain.com). Mail will always look like it was sent from your.hostname.com.
     
  3. dwh2

    dwh2 Well-Known Member

    Joined:
    Jan 14, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    I'd like to do this too. I have some accounts that are used just for a couple static html pages and nothing else. They are filled with 1 gig of spam mail. I tried to delete the home/domain/mail/cur directory, which took awhile to figure out how to delete several hundred thousand files...and next day, the /cur files were back again.

    Then I found out that processing all these bogus mails is taking down my server for an hour a day in middle of the night during cpbackup. I just want to remove mail from a whole bunch of hostnames...

    P.S. bonus question. In one directory, a du -sh shows a lot of data in /home/anotherdomain/mail/cur directory. But an ls -la command in that directory turns up no files. Is it related to normal /cur operations? Or is it possible I have some mail trojan or something?

    Thanks.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Here's a few common things to check to curb this issue:

    - What is the default address set to? Is it set to :fail:?
    - Is the user enabling SpamBox? If so, are they accessing the mail via POP3? If the user is downloading mail via POP3, they are likely unaware of their full SpamBox.
    - Are you using Perl 5.8.8? I know earlier versions of Perl result in SpamAssassin not performing as well as it should.
     
  5. dwh2

    dwh2 Well-Known Member

    Joined:
    Jan 14, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    Thank you for your reply.
    It wasn't set to anything. I now made it :blackhole: so it wouldn't generate more bounced mail... or are you saying :fail: is better?

    In one case the user isn't using email at all. I enabled spambox on that account.

    In another case, it's me and I just left the defaults on with no intention of ever getting mail there....

    I'd love to be able to default a whole bunch of accounts to not receiving mail at all! Is there a WHM method to do that?

    Code:
    perl -v
    
    This is perl, v5.8.8 built for i686-linux
    David, now that I set default address to :blackhole: can I just delete the /home/username/mail directory and subdirectories? Or will they come back again?
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    :fail: is better than :blackhole: as :blackhole: will accept the email THEN drop it. On the other hand, :fail: will result in the email being blocked at SMTP time and thus reduce server resources consumed by processing such mail.

    You can set the number of email accounts that user/users with that package is/are permitted to create to 0 and that will prevent users from creating mail accounts.

    If you just want to forward mail, just set up an email forwarder - there is no need to create an email account in those situations. Forwarders are not counted towards the number of email accounts a user has.

    I would recommend deleting the email addresses via the cPanel interface before deleting those directories.
     
Loading...

Share This Page