Support Portal Language
 
HomeKnowledge BaseVPSLinuxHow to set up SpamAssassin spam filter on your VPS
Information
Article ID33
Created On4/24/2008
Modified4/24/2008
Share With Others
How to set up SpamAssassin spam filter on your VPS

To switch on SpamAssassin spam filter:

1 Click the Server shortcut in the navigation pane.



2 Click the Spam Filter tab.



To let your users set their own spam filtering preferences on a per mailbox basis, select the Allow per-user preferences checkbox.

4  If you wish to adjust the amount of system resources the spam filter should use, type the desired value from 1 to 5 into the Maximum number of worker spam processes to run (1-5) box. 1 is the lowest load, and 5 is the highest. We recommend that you use the default value.

5 If you wish to adjust the spam filter's sensitivity, type the desired value into The score that a message must receive to qualify as spam box.

SpamAssassin performs a number of different tests on the content and subject line of each message. As a result, each message scores a number of points. The higher the number, the more likely a message is spam. For example, a message containing the text string "BUY VIAGRA AT LOW PRICE!!!" in subject line and message body scores 8.3 points. By default, the filter sensitivity is set so that all messages that score 7 or more points are classified as spam.

  • When your users receive lots of spam messages with the current setting, try setting a lesser value.
  • When your users are missing emails because your spam filter thinks they are junk, try reducing filter sensitivity by setting a higher value.
6  Specify how to mark messages recognised as spam.

At the server level, you cannot set the server-wide spam filter to automatically delete spam. You can do it only on a per-mailbox basis. So, for the server-wide policy, you can only choose to mark messages as spam. "X-Spam-Flag: YES" and "X-Spam-Status: Yes" headers are added to the message source by default. If you want, the spam filter can also add a specific text string to the beginning of each email's subject line. To include a word or phrase, type it into the Add the following text to the beginning of subject of each message recognized as spam box. If you do not want the spam filter to modify message subject, leave this box blank. If you want to include into the subject line the number of points that messages score, type _SCORE_ in this box.

If you do not want your users to receive email from specific domains or individual senders, click the Black List tab, and then add the respective entries to the spam filter’s black list:

  • To add entries to the black list, click Add Addresses. If you have a list of entries stored in a file, click Browse to specify it, and then click OK. Otherwise, select the From List option, and type the email addresses into the E-mail addresses box. Place each address on its own row, or separate addresses with a comma, a colon, or a white space. You can use an asterisk (*) as a substitute for a number of letters, and question mark (?) as a substitute for a single letter. For example: address@spammers.net, user?@spammers.net, *@spammers.net. Specifying *@spammers.net will block the entire mail domain spammers.net. To save the entries you added, click OK, then click OK again.
  • To remove entries from the black list, under the Black List tab, select the entries and click Remove Selected. Click OK to confirm removal
If you want to be sure that you and your users will not miss email from specific senders, click the White List tab, and then add email addresses or entire domains to the spam filter’s white list:
  • To add entries to the white list, click Add Addresses. If you have a list of entries stored in a file, click Browse to specify it, and then click OK. Otherwise, select the From List option, and type the email addresses into the E-mail addresses box. Place each address in one row, or separate addresses with a comma, a colon, or a white space. You can use an asterisk (*) as a substitute for a number of letters, and question mark (?) as a substitute for a single letter. For example: address@mycompany.com, user?@mycompany.com, *@mycompany.com. Specifying *@mycompany.com will add to the white list all email addresses that are under the mycompany.com mail domain. To save the entries you added, click OK, then click OK again to confirm.
  • To remove entries from the white list, under the White List tab, select the entries and click Remove Selected. Click OK to confirm removal.
9 Once you've finished setting up the spam filter, click the  button.

Now all incoming mail will be filtered on the server side. By default, the spam filter does not delete spam mail. It only adds the "X-Spam-Flag: YES" and "X-Spam-Status: Yes" headers to the message, and "*****SPAM*****" to the beginning of the Subject of each message recognised as spam.

If you have enabled the Allow per-user preferences option, then your users will be able to set their spam filters to automatically delete junk mail. They will also be able to set up their personal black and white lists that will override the server settings, and teach the spam filter on a per-mailbox basis.

Please Note: Spam Assassin is only installed on the VPS Mid & Premier Packages