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