Delete Default account on Cpanel

mohdyasar

Active Member
Jun 27, 2004
43
0
156
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 [email protected]

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
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
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.
 

slinky

Well-Known Member
Jul 26, 2007
78
2
58
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.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
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).