Automatically empty spam folder
We offer you the option of filtering spam email in to a folder called spam, this feature is called Spam Box and can be enabled in the SpamAssassin section of cPanel.
If you choose to use the Spam Box you should empty the spam folder regularly to ensure it doesn't use all your account quota. This guide shows you how to regularly and automatically empty the contents of your spam email folder.
Note: This guide will delete all emails in your spam folder regardless of how old the email is. It will do this for all your email addresses (if you have more than one email account set up).
Download this file to your computer.
Using Winzip extract spamprune.sh onto your computer.
Upload spamprune.sh to your root directory. You'll know when you are in the right directory because the contents includes public_html, mail, public_ftp, tmp and etc.
Change the permissions (CHMOD) of spamprune.sh to 755.
Login to cPanel, click the Cron jobs icon and select Standard mode.
In the Command to run box enter:
Then use the selection boxes to set when and how often you would like your spam folder to be emptied. Using the example below the spam folder will be emptied every Sunday at 3am. When you're happy with the settings, click the Save Crontab button.
And you are done! Now your spam folder will be emptied at the time you specified.
Was this answer helpful?
We support HTTP compression, this speeds up the loading time of your website by compressing...
You should always keep backups of your databases, but it's a lot of hassle to download one...
It is possible to make your Webalizer usage statistics available to the public with an easy to...