Support / KnowledgeBase

 
Search the KnowledgeBase Search

Modify the number of SpamAssassin processes

  • Applies to: All (dv)

  • Difficulty: Medium

  • Time needed: 20 minutes

  • Tools needed: SSH, ROOT, VI

 
  • Applies to: (dv) 4.0
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: Plesk administrator access or SSH, root or sudo access, vi knowledge
  • Applies to: (dv) 3.5
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: Plesk administrator access or SSH, root or sudo access, vi knowledge

Overview

To reduce RAM usage on your (dv) Dedicated-Virtual Server you can reduce the number of processes used by spamassassin.

Requirements

Before you start, this article has the following dependencies:

End of Life Warning

This service has a pending End of Life. Please move to a current service as soon as possible. For more information, please see: (dv) Dedicated-Virtual 4.0: Migration Information.

READ ME FIRST

The publishing of this information does not imply support of this article. This article is provided solely as a courtesy to our customers. Please take a moment to review the Statement of Support.

Instructions

Via Plesk

  1. Log into your Server Administration Panel, see Figure 1:


    Figure 1: Server Administration Panel

  2. From the right-hand menu, click on Tools & Settings.
  3. Under the Mail group, click on Spam Filter Settings.
  4. To allow server-wide filtering based on the settings you define, select the Switch on server-wide SpamAssassin spam filtering checkbox.
  5. To let your users set their own spam filtering preferences on a per-mailbox basis, select the Apply individual settings to spam filtering checkbox.
  6. 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 spamd processes to run (1-5) box (1 is the lowest load, and 5 is the highest). We recommend that you use the default value.

    If you wish to adjust the spam filter's sensitivity, type the desired value in the The number of points a message must score to be considered spam box.

TIP:

SpamAssassin performs a number of different tests on contents 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 the 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, to make filter more sensitive, try setting a lesser value in the The score that a message must receive to qualify as spam box.

When your users are missing e-mails because your spam filter thinks they are junk, try reducing filter sensitivity by setting a higher value in the The score that a message must receive to qualify as spam box.

  1. Log into Plesk as the admin user.
  2. Click on Server.
  3. Click on Spam Filter.
  4. Now, change the number next to "The maximum number of worker spamd processes to run (1-5)".

Via SSH

  1. Log into your (dv) Dedicated-Virtual Server as the root user.
  2. Backup your psa.conf file:
    cp /etc/psa/psa.conf /etc/psa/psa.conf.bak
  3. Open your psa.conf file:
    vi /etc/psa/psa.conf
  4. Add or modify the following two lines:
    # Maximum number of Spamassassin processes
    SPAMASSASSIN_MAX_CHILDREN 2
  5. Finally, restart SpamAssassin with the following line:
    service psa-spamassassin restart

User Comments

No visitor comments posted. Post a comment
Fields marked with an asterisk(*) are required. Comment on this article
Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue