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.

Delete Default account on Cpanel

Discussion in 'General Discussion' started by mohdyasar, Aug 15, 2008.

  1. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Dear Members

    Cpanel creates a default email account for example if your username is

    kilo and domain is kiloint.com

    it will create a def email box kilo@kiloint.com

    at times when you are trying to send mail from scripts etc, all bounces will come in this system, is there a way to empty the default boxes on each account as over a period of time it gets filled up sometimes upto 500MB also.

    Can someone throw some light on this .


    Thanks
     
  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
    In WHM -> Server Configuration -> Tweak Settings -> Mail, what do you have as the setting for:

    Code:
    Default catch-all/default address behavior for new accounts. "fail" is usually the best choice if you are getting mail attacks
    If it is localuser, that would explain this behavior. You may want to set it to fail.

    Note, this only affects new accounts - this does not modify the behavior of existing accounts. Individual users can change this in cPanel -> Mail -> Default Address.
     
  3. slinky

    slinky Well-Known Member

    Joined:
    Jul 26, 2007
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    I have this same problem. The user is asking a way to easily empty the mailbox which has accumulated over 500MB of spam. I've now got the offending account pointed to bounce catchall email but that still leaves us with the question of how to empty the domain/account mailbox without having to delete the entire domain and start again. Your response is greatly appreciated, thank you.
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The messages should be stored in one or both of:

    /home/user/mail/new
    /home/user/mail/cur

    Thus you could:

    Code:
    cd /home/user/mail/new
    rm -f *
    cd ../cur
    rm -f *
    
    Or, you could log into the webmail interface of the account and delete the messages using Squirrelmail, Horde, etc (not practical for hundreds or more messages).
     
Loading...

Share This Page