Bug 296532 - mail/rspamd upgrade to 4.1.1
Summary: mail/rspamd upgrade to 4.1.1
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Vsevolod Stakhov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-05 12:06 UTC by Jordan Ostreff
Modified: 2026-07-05 15:22 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (vsevolod)


Attachments
mail/rspamd upgrade to 4.1.1 (5.11 KB, patch)
2026-07-05 12:06 UTC, Jordan Ostreff
jordan: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan Ostreff 2026-07-05 12:06:54 UTC
Created attachment 272508 [details]
mail/rspamd upgrade to 4.1.1

This update brings mail/rspamd to version 4.1.1 and introduces structural improvements to its regular expression scanning backends, optimized specifically for the FreeBSD ecosystem:

1. Introduction of Vectorscan (Portable Alternative):
Intel's Hyperscan is historically bound to x86_64 architectures and has deprecated upstream components. This patch introduces devel/vectorscan as a modern, actively maintained, and highly portable alternative that delivers excellent performance under FreeBSD. 

2. Architecture-Specific Scaling:
To ensure seamless deployments across diverse hardware topologies, the regex engine options are dynamically adjusted based on the target architecture:
- 64-bit x86 (amd64): Users can choose between HYPERSCAN and VECTORSCAN via a SINGLE/RADIO group (defaulting to VECTORSCAN for better modern support).
- 64-bit non-x86 (aarch64, powerpc64, powerpc64le): HYPERSCAN is automatically stripped as it is incompatible. VECTORSCAN is promoted to a standalone option to ensure native, high-performance regex acceleration on modern ARM and POWER hardware.
- 32-bit & legacy platforms (i386, armv7, powerpc): High-performance JIT-based engines are cleanly disabled to prevent build and runtime failures, falling back to Rspamd's standard fallback routines.

3. General Port Health:
- Fully cleaned up the Lua/LuaJIT options framework logic to allow pristine, mutually exclusive toggling between standard Lua and lang/luajit-openresty without QA testing complaints.
- Included the post-upgrade pkg-message reminder to flush older cached hyperscan `.unser` alignment files from /var/db/rspamd, preventing post-upgrade crashes.

The patch applies cleanly against the current ports tree, passes portlint/portclippy with zero structural errors, and builds successfully through all stage-qa phases.