Mail::SpamAssassin::Plugin::ResourceLimits(3pm)

Mail::SpamAssassin::Plugin::ResourceLimits3pm

Limit the memory and/or cpu of child spamd processes

Usage

  # This plugin is for admin only and cannot be specified in user config.
  loadplugin     Mail::SpamAssassin::Plugin::ResourceLimits
  # Sets to RLIMIT_CPU from BSD::Resource. The quota is based on max CPU Time seconds.
  resource_limit_cpu 120
  # Sets to RLIMIT_RSS and RLIMIT_AS via BSD::Resource.
  resource_limit_cpu 536870912

Overview

This module leverages BSD::Resource to assure your spamd child processes do not exceed specified CPU or memory limit. If this happens, the child process will die. See the BSD::Resource for more details.

NOTE: Because this plugin uses BSD::Resource, it will not function on Windows.

Administrator settings

resource_limit_cpu 120 (default: 0 or no limit)

How many cpu cycles are allowed on this process before it dies.

resource_limit_mem 536870912 (default: 0 or no limit)

The maximum number of bytes of memory allowed both for:

•

(virtual) address space bytes

•

resident set size

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

From spamassassin 4.0.2-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.