Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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

Posted

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)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...