Clear SPAM BOX for ALL the users

Heritz

Well-Known Member
Aug 12, 2006
45
0
156
Hello guys,

I have around 80 accounts in my dedicated server. Cleaning the SPAMBOX one by one its a pain in the a$$. Is there any way, any SSH command or something to clear the SPAMBOX for ALL the accounts in the server?

All of them have the SPAMASSASIN and the SPAMBOX enabled. But cleaning them is a pain.

Thanks guys!
 

dragonbooster

Active Member
Oct 4, 2006
34
0
156
Setting up cron to empty spam boxes

cd home
create file emptyspam
pico emptyspam (paste all the urls to empty the spam)
echo > /home/username/mail/path to spam
echo > /home/username1/mail/path to spam and so on
(the commands to empty spam to be pasted in the empty spam file)
chmod 755 emptyspam
crontab -e (setting a cron tab, -e for editting the file)
and paste the following

* 23 * * * /home/emptyspam

Please try this
 

btwatts

Active Member
Jun 26, 2003
29
0
151
Empty Spam Box

It seems this would work, but requires a fair amount of maintenance (every time an account is added, the script needs to be updated).

Either the script generation would need to be automated (something I'm sure we could write), or we could request this feature out of CPanel ??

Any thoughts on getting this feature included in CPanel?

Thanks!
 

Imai

Well-Known Member
Aug 11, 2003
45
0
156
Request this Feature

This will be a nice addition to WHM.
There are customers who don't even login to their control panel.
They only come back when their users receive a warning message saying
"How come our mailbox is full?"
It will be nice to be able to perform this operation for them.