Modify the number of SpamAssassin processes


Browse by products and services

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

Overview

You can reduce some RAM utilization on your server by reducing the number of processes used by spamassassin.

Requirements

Before you start, this article has the following dependencies:

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.
  2. From the top menu bar, Click on Server.
  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 VITAMINS 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.

Via SSH

  1. Log into your server using SSH 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