Mail::...Limits(3pm)
π NAME π
so basically this is the manual page for Mail::SpamAssassin::Plugin::ResourceLimits (from the 3pm perl section, bestie π) and it's all about limiting the memory and/or CPU of child spamd processes. yeah. we're putting your spamd children on a lil leash. for their own good π
β¨ SYNOPSIS β¨
okay so here's the vibe in code, no cap:
# 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
head up: that second one says resource_limit_cpu in the example, and yeah we're just telling you exactly what it says, character for character, because that is literally what's written π«Ά don't come for me, I'm just the messenger.
π DESCRIPTION π
so the way this works is: this module leverages BSD::Resource to assure your spamd child processes do not exceed the specified CPU or memory limit. and if they do exceed it? the child process will die π like, respectfully, it's over for them. go read the BSD::Resource docs for more details if you want the deep lore π
NOTE: and this one is important so listen β because this plugin uses BSD::Resource, it will not function on Windows. not even a little. it's giving "unavailable", it's giving "sorry bestie". if you're on Windows this page is not your moment π
π ADMINISTRATOR SETTINGS π
π resource_limit_cpu 120 (default: 0 or no limit)
how many cpu cycles are allowed on this process before it dies. that's it. that's the setting. the 0 default means no limit, so it's just vibing forever unless you say otherwise β³
π§ resource_limit_mem 536870912 (default: 0 or no limit)
the maximum number of bytes of memory allowed, and it applies to both of these, she's an overachiever:
- (virtual) address space bytes
- resident set size
again with the 0 default meaning no limit β unlimited memory, unlimited problems, main character energy π
and that's the whole page, you ate it π this was Mail::...Limits(3pm) from perl v5.40.1, dated 2026-07-23, brought to you by the User Contributed Perl Documentation girlies. thanks for coming to my ted talk, go set some limits on your children π¦β¨ periodt.
π¦ where this page comes from
- ubuntu stonking: spamassassin 4.0.2+svn1935691-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms