Rspamd 4.0.0 - New Scan Protocol and Memory Savings Released

Basically, Rspamd 4.0.0 makes spam filtering faster and requires some setup changes.
Rspamd 4.0.0 has launched, featuring a new scan protocol and memory optimizations. Users must follow migration steps for a smooth upgrade. This release enhances spam filtering efficiency significantly.
What Happened
The open-source spam filtering platform Rspamd has released version 4.0.0, which includes major updates to its infrastructure. This new version brings enhancements in the scan protocol, memory management, and configuration system. Notably, some changes are breaking, meaning users must take specific steps to migrate before upgrading. This release aims to improve performance and efficiency in spam filtering operations.
One of the most significant updates is the introduction of a new scan protocol. The /checkv3 endpoint replaces the previous method of using HTTP headers, now utilizing structured JSON or msgpack for metadata transport. This change enhances the way data is handled, allowing for more efficient requests and responses.
Who's Affected
The updates in Rspamd 4.0.0 will primarily affect system administrators and operators who manage spam filtering systems. Those using older versions of Rspamd will need to adapt to the new features and migration steps. The changes are particularly relevant for environments that rely on multi-worker deployments, as they can significantly impact memory usage and performance.
Additionally, users who have integrated Rspamd with external libraries, such as libfasttext, will need to adjust their configurations since the dependency has been removed in this release. The new built-in memory management system is designed to optimize performance across all worker processes.
What Data Was Exposed
While the release does not indicate any data exposure, the changes may affect how data is processed and stored. The new memory model and hash storage improvements aim to reduce the overall memory footprint, potentially saving between 500MB and 7GB of RAM in multi-worker setups. This optimization is crucial for maintaining efficient operations in environments that process high volumes of spam.
Moreover, the introduction of fuzzy hashes with multiple flags allows for more sophisticated detection of phishing attempts, enhancing the overall security posture of users relying on Rspamd for spam filtering.
What You Should Do
For those planning to upgrade to Rspamd 4.0.0, it is essential to follow the migration steps outlined by the developers. Operators must run the command rspamadm statistics_dump migrate to ensure data compatibility with the new version. It is also advisable to review the updated configuration settings, as the new templating system and HTTPS support may require adjustments to existing setups.
In summary, Rspamd 4.0.0 offers significant improvements and optimizations. However, users must be proactive in addressing the breaking changes to fully leverage the benefits of this new release.