TheFuzz Posted December 29, 2005 Posted December 29, 2005 Hi, First posting to the forum. Some really great info here. My question: I recently configured SpamAssassin to push spam directly to the spam box for each of the e-mail accounts. However, some of my users (POP3) aren't able to download the spam box contents. Sure enough, they reach their quota and complain. The short term answer is to have them go view the spam box via the web on a periodic basis (e.g., weekly) and clean it out, but this isn't optimal. I'd like to do it automatically. It is possible to issue a chron job that cleans specific user's spam box out 1x per week? If so, how, where, etc. (Note: I haven't used much scripting at TCH so all basic info would be greatly appreciated.) Thanks The Fuzz Quote
TCH-Rick Posted December 29, 2005 Posted December 29, 2005 There is a fairly easy way to clear all of the spam boxes at once. You would log into your cPanel and select the Spam Assassin option. At the bottom of the page is an option to clear the spam box. It will clear all of them. You could set up a cron job to delete the spam boxes by entering the following command for each account: rm -f /home/yourcpanelusername/mail/yourtchdomain/emailuser/spam Just replace the parts in blue with the appropriate information for the account. It would be safer, however, to clear the spam box in cPanel under the Spam Assassin options regularly. Quote
TCH-Andy Posted December 29, 2005 Posted December 29, 2005 An alternative is to just set a filter to delete spam, instead of having the spam box. That way, all spam is deleted as soon as it's detected, and you don't need to regularly clear out a spam box. Quote
TCH-Bruce Posted December 29, 2005 Posted December 29, 2005 Welcome to the forums I second Andy's suggestion and is the way I have mine set up. Quote
TheFuzz Posted December 29, 2005 Author Posted December 29, 2005 Thanks for the filtering suggestion. Does this occur at the server level, or at the client level? If at the server level, I assume that it is done via the C-pannel. Can you confirm? Thanks TheFuzz Quote
TCH-Bruce Posted December 30, 2005 Posted December 30, 2005 It is done at the server level. You need to go into Spam Assassin and turm off the Spam Box option and then go into the Email Filter and create a new filter with the following. Select Spam Assassin Header in the first drop down Select Begins with in the second drop down Enter Yes in the next box Enter Discard in the destination box (should already be there) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.