We have released Rspamd 1.9.2 today.
This release contains some new features and bug fixes. The only potentially slashing changes are the changes in Clickhouse module:
-
Times are now stored in GMT timezone so you can use Clickhouse for analytics that crosses time zones. The potential drawback is the mess with the currently stored data. This should be resolved automatically once new data arrives.
-
Clickhouse schema has been updated to the version 4
with new fields and some minor changes. The existing database should be converted automatically and there are no incompatible changes in columns.
This release includes the following features.
Improvements in Clickhouse plugin
Rspamd now stores more data in Clickhouse:
- Mime recipients
- Message IDs
- Scan time for a message, both normal and virtual
- SPF checks results
- Some new calculated columns, such as
MIMERcpt
, MIMEFrom
, SMTPFrom
and SMTPRcpt
These columns are intended to improve analytical capabilities of Clickhouse plugin.
OpenDKIM compatible DKIM signing setup
This version now includes a simplified DKIM signing setup option inspired with OpenDKIM.
You can read more about it here: https://rspamd.com/doc/modules/dkim_signing.html#use-of-signing_table
This mode is intended to simplify migration from the existing setups based on OpenDKIM to Rspamd.
Better encrypted archives support
Rspamd can now properly detect encryption in ZIP archives. Mime types plugin now also tries to resolve hex encoding hack used by some spammers to send malware to users (see PR 2582).
Calendar files parser
From the version 1.9.2, Rspamd can extract meaningful data from Calendar files in iCal format (.ics
files). These files are sometimes used by spammers so Rspamd can now extract hyperlinks and emails from calendar attachments to improve filtering quality.
It is now possible to do some DNS checks with the new tool. For example, it is now possible to verify SPF records as they are observed by Rspamd, including elements extraction, for example a
or mx
and verification of the IP addresses. Here is how it looks like:
Better bitcoin addresses detection
We have improved bitcoin addresses detection by fixing some issues in the BTC wallet validation code. It now allows to catch Pay-To-Script addresses.
Full list of the meaningful changes
- [Conf] Allow to load users plugins from plugins.d
- [Conf] oversign openpgp and autocrypt headers
- [Feature] Add SPF FFI library for Lua
- [Feature] Add more verbosity for SPF caching
- [Feature] Antivirus: Handle encrypted files specially
- [Feature] Clickhouse: Slashing - add new fields to CH
- [Feature] Dkim_signing: Add OpenDKIM like signing_table and key_table
- [Feature] Dkim_signing: Allow to use new options as maps
- [Feature] Import fpconv library
- [Feature] Lua_maps: Allow static regexp and glob maps
- [Feature] Parse ical files
- [Feature] Rspamadm: Add dns_tool utility
- [Feature] Store SPF records digests
- [Feature] Use fpconv girsu2 implementation for printing floats
- [Fix] Clickhouse: Use integer seconds when inserting rows
- [Fix] Fix floating point printing
- [Fix] Fix processing of embedded urls
- [Fix] Lua_clickhouse: Fix CH errors processing
- [Fix] Make spf digest stable
- [Fix] Properly detect encrypted files in zip archives
- [Fix] Slashing: Store times in GMT timezone in ClickHouse
- [Rules] Add additional conditions to perform BTC checks
- [Rules] Fix pay-to-hash addresses validation
We have released Rspamd 1.9.1 today.
This release includes one potentially dangerous change: all configuration files are now preprocessed using Jinja templates.
Hence, if you have sequences like {=
/=}
, or {%
/%}
, or {#
/#}
anywhere in the configuration files including even comments then you need to take extra care when moving these configuration to the new version! There are workarounds described above to do that.
Here is the list of the most important changes in this version.
Jinja templates in the configuration
From version 1.9.1, Rspamd supports Jinja2 templates provided by Lupa Lua library. You can read the basic syntax documnentation and the abilities provided by these templating engines using the links above. Rspamd itself uses a specific syntax for variable tags: {=
and =}
instead of the traditional {{
and }}
as these tags could mean, e.g. a table in table in Lua.
Templating might be useful to hide some secrets from config files and places them in environment. Rspamd automatically reads environment variables that start from RSPAMD_
prefix and pushes it to the env
variable, e.g. RSPAMD_foo=bar
comes to env.foo="bar"
in templates.
New template subcommand in Rspamadm
Rspamadm
has now template
subcommand to apply templates engine to the input file or files:
Options supported:
-n, –no-vars |
Don’t add Rspamd internal variables |
-e , --env |
Load additional environment var from specific file (name=value) |
-l , --lua-env |
Load additional environment vars from specific file (lua source) |
-s , --suffix |
Store files with the new suffix |
-i, –inplace |
Replace input file(s) |
Rspamd now tries to extract URLs from plain text of HTML parts. Unfortunately, despite of being contraversal, some Email clients do that as well. One of the notable example is Outlook. Hence, from this release Rspamd also looks for URLs in plain HTML text.
Per user settings for mime_types
plugin
Mime types plugin now supports per user settings to allow individual black and white lists of extensions. Here is an example to increase score for exe
extensions for some specific user:
test {
from = "user@example.com";
apply {
plugins {
mime_types = {
bad_extensions = {
exe = 100500,
}
}
}
}
}
Mime types plugin now also supports reverse mapping of content type to extension to allow processing of attachments where an exact file name is not specified.
Better greylisting conditioning
It is now possible to disable or enable greylisting in Rspamd based on the presence of some specific symbols. This feature allows more fine grained greylisting control.
Bitcoin addresses validation
It is not a secret that the wave of spam and scam related to crypto currencies has been flooding the email flows in the recent time. Rspamd has a special rule called LEAKED_PASSWORD_SPAM
to block some of the scam types. In this version, Rspamd also checks bitcoin wallets to distinguish them from random long strings to reduce false positives rate significantly. It also allows to build a database of wallets used for scam and spam.
Replies plugin validation
Replies plugin now stores the from/reply-to address when tracking outbound messages and whitelists merely replies that come that address. It helps to avoid replies abusing where spammers were able to catch some legit message ids somewhere in public lists and used them in In-Reply-To
headers to dodge spam filtering in Rspamd.
List of major bug fixes
This version includes some important fixes:
- Add crash safety for HTTP async routines
- Clickhouse: Fix table schema upload
- Core: Fix squeezed dependencies handling for virtual symbols
- Finally fix default parameters parsing in actions section
- Fix ES sending logic (restore from coroutines mess)
- Fix finishing script for Clickhouse collection
- Fix priority for regexp symbols registration
- Neural: Fix training
- Rework cached Redis logic to avoid sentinels breaking
- SURBL: Fix regression in surbl module
- Fix double signing in the milter
Full list of the meaningful changes
- [Conf] Add vendor groups for symbols
- [Feature] Add
rspamadm template
command
- [Feature] Allow to add messages from settings
- [Feature] Allow unconnected DNS servers operations
- [Feature] Check limits after being set, migrate to uint64
- [Feature] Greylist: Allow to disable greylisting depending on symbols
- [Feature] Improve lua binary strings output
- [Feature] Mime_types: Implement user configurable extension filters
- [Feature] Mime_types: When no extension defined, detect it by content
- [Feature] Preprocess config files using jinja templates
- [Feature] Replies: Filter replies sender to limit whitelisting to direct messages
- [Feature] Treat all tags with HREF as a potential hyperlinks
- [Feature] Validate BTC addresses in LEAKED_PASSWORD_SCAM
- [Fix] Add crash safety for HTTP async routines
- [Fix] Another fix for Redis sentinel
- [Fix] Clickhouse: Fix table schema upload
- [Fix] Core: Fix squeezed dependencies handling for virtual symbols
- [Fix] Finally fix default parameters parsing in actions section
- [Fix] Fix ES sending logic (restore from coroutines mess)
- [Fix] Fix finishing script for clickhouse collection
- [Fix] Fix priority for regexp symbols registriation
- [Fix] Fix various issues found by PVS Studio
- [Fix] Initialize lua debugging earlier
- [Fix] Neural: Fix training
- [Fix] Rework cached Redis logic to avoid sentinels breaking
- [Fix] SURBL: Fix regression in surbl module
- [Fix] Fix double signing in the milter
- [Project] Add support of HTTP proxy in requests
- [Rework] Change lua global variables registration
- [Rework] Rework HTML content urls extraction
- [Rework] Start rework of aliasing in Rspamd
- [WebUI] Combine Scan and Learning into one tab
- [WebUI] Fix symbol score input type
- [WebUI] Show grayed out pie
- [WebUI] Update Throughput summary values dynamically
We have released Rspamd 1.9.0 today.
There are various important features in this release. The vast majority of those should not have any impact on the existing systems. However, you are recommended to read the Upgrade Notes.
This release contains lots of improvements, reworks and bugs being fixed. Here is a list of the most important changes in this release:
External services
Rspamd is now shipped with the external services module contributed by Carsten Rosenberg. This module provides a generic integration with the following services:
- Generic ICAP protocol:
- ClamAV (using c-icap server and squidclamav)
- Sophos (via SAVDI)
- Symantec Protection Engine for Cloud Services
- Kaspersky Web Traffic Security 6.0
- OleTools
- DCC
- VadeSecure
This plugin is a part of a more generic lua_scanners
framework that allows more flexible integration with different Antivirus and AntiSpam OEM services.
Rspamadm
mime subcommand now allows to modify messages. This tool allows to add or remove headers in a message, add footers in HTML and text parts and do some subject rewriting. For example, to add a footer and rewrite subject in a message, one can use the following command: rspamadm mime modify --text-footer=footer.txt --html-footer=footer.html --rewrite-header="Subject=TEST: %s"
.
This tool has full MIME support (including multipart messages), supports various messages encoding and convert those to UTF8
, allows to modify both plain old messages and multipart messages with attachments. It also properly detects and excludes GPG signed/encrypted messages.
Another tool that has been added to rspamadm
is sign
subcommand. This command allows to perform DKIM signing using a specific private key for some message or messages. It can either return isolated header or modify the message itself.
In conjunction with the previous tooling, it could be used to modify and sign messages produced by mailing lists or some local forwarding scripts.
Please bear in mind that this tool is available when using LuaJIT only as it requires FFI interfaces.
HTTP Keep-Alive support
From this version, Rspamd supports keep-alive in its HTTP Lua client. This could be used to implement high frequent requests to some external services and to reduce load by keeping the pool of HTTP connections instead of opening a connection per each request.
New Lua UDP client
Rspamd now support sending of generic UDP requests as well as TCP ones. There are various modes supported, both one-way and two-ways with optional retransmits and timeouts. This module comes with the documentation available.
Better unicode normalisation
This version comes with further improvements towards unicode normalisation and detecting anomalies. Words now are sanitized from any combining characters after translating to NFKC form.
Configuration graph utility
You can now visualise your configuration by building the include graph. There is a new tool called rspamadm configgraph
that takes configuration and convert it to the graphviz DOT graph.
Flexible actions support
Rspamd now support any actions definitions in addition to normal ones. You can set custom actions with thresholds or without (e.g. to set action equal to phishing
or to social
). All actions should be explicitly defined in the configuration.
We have migrated from a strict RFC compatible state machine to a custom parser for the Received headers. This change allows to extract more data from non-conforming Received headers used by some MTA (Exim is one of the notable examples).
Telephone URLs support
Rspamd now parses and processes telephone URLs. That allows to build blacklist for spam/scam/phishing phones as well as plain URLs.
Support for ED25519 signatures
Rspamd now supports dual signing and ed25519
DKIM signatures. New ed25519 keys could be generated using rspamadm dkim_keygen
tool:
rspamadm dkim_keygen -t ed25519
CuHc4MOZYXEVH0M4WFQHL5UC2NbVJO8aq2CjGNznxm36mJPlu9GVMfq0lQI1dkeoHByqfsJgMgnCX0vFeMkjoA==
selector._domainkey IN TXT ( "v=DKIM1; k=ed25519; "
"p=+piT5bvRlTH6tJUCNXZHqBwcqn7CYDIJwl9LxXjJI6A=" ) ;
Ed25519 keys are much shorter than RSA providing RSA2048 security margin in just 32 bytes for public keys. Unfortunately, these signatures are not widely supported so dual signing is still required. We believe that support of the modern algorithms in Rspamd would those algorithms to spread.
Custom functions in Regexp module
Regexp module is now extended with custom Lua functions support. This feature allows to mix fast regexp rules and custom logic of Lua rules without explicit composite rules.
Added support of gzip archives
Rspamd now support reading filenames from GZip archives that are surprisingly often used by some spam senders. With this feature, Rspamd can filter some tricky scam emails that are targeting to install backdoors or malware on users’ machines (e.g. cryptolockers).
Additional detection of types for attachments
To filter malware and bad attachments that are somehow hidden by malicious Content-Type
header, Rspamd also performs libmagic
scan on attachments to detect the real type by its content. This is useful to detect and filter some tricky malware that utilizes bugs in popular email clients.
Lots of major fixes
This version includes many major fixes that required massive rework to improve stability and performance:
- Race conditions in the maps reading code
- Support RFC2231 encoding in headers
- Better zero characters handling
- Better HTML parsing and handling of the URLs
- Coroutines are now explicitly separated from the async code to prevent tricky race conditions that caused crashes on certain load
- Allow to disable/enable composite symbols
- Lots of fixes in 7z processor
- Detect encrypted rarv5 archives
- Fix ETags support
- Fix processing of NDNs of certain type
- Improved Content-Type parsing
- Fix deletion of the duplicate headers
- Fix parsing of mime parts without closing boundary
We recommend to update Rspamd to this version to apply all these features and fixes.
Full list of the meaningful changes
- [Conf] Add missing includes
- [Conf] Move to options
- [Conf] Rbl: DWL is actually special whitelist
- [Conf] Relax some uribl rules
- [Conf] Remove abuse.ch
- [CritFix] Html: Entities are not valid within tag params values
- [Feature] Add
rspamadm mime sign
tool
- [Feature] Add configgraph utility
- [Feature] Add dedicated ZW spaces detection for URLs
- [Feature] Add flag to url object when visible part is url_like
- [Feature] Add method task:lookup_words
- [Feature] Add pyzor support (by crosenberg)
- [Feature] Allow to add upstream watchers to Lua API
- [Feature] Allow to set rewrite subject pattern from settings
- [Feature] Better escaping of unicode
- [Feature] Clickhouse: Allow to store subject in Clickhouse
- [Feature] Core: Add QP encoding utility
- [Feature] Core: Add libmagic detection for all parts
- [Feature] Core: Add support for gzip archives
- [Feature] Core: Allow to construct scan tasks from raw data
- [Feature] Core: Detect charset in archived files
- [Feature] Core: Ignore and mark invisible spaces
- [Feature] Core: Normalise zero-width spaces in urls
- [Feature] Core: Process data urls for images
- [Feature] Core: Relax quoted-printable encoding
- [Feature] Core: Support RFC2231 encoding in headers
- [Feature] Core: Support telephone URLs
- [Feature] Core: allow to emit soft reject on task timeout
- [Feature] DCC: Add bulkness and reputation checks to dcc
- [Feature] Elastic: Modernize plugin
- [Feature] Export visible part of url to lua
- [Feature] Fuzzy_storage: add preliminary support of rate limits
- [Feature] HTML: Specially treat data urls in HTML
- [Feature] Implement event watchers for upstreams
- [Feature] Implement includes tracing in Lua
- [Feature] Improve dkim part in configwizard
- [Feature] Lua_scanners: Add VadeSecure engine support
- [Feature] Lua_task: Add flexible method to get specific urls
- [Feature] Mime_types: Add MIME_BAD_UNICODE rule
- [Feature] Mime_types: Use detected content type as well
- [Feature] Plugins: Add preliminary version of the external services plugin
- [Feature] Query sentinel on master errors
- [Feature] Regexp: Allow local lua functions in Rspamd regexp module
- [Feature] Rspamadm: Allow to append footers to plain messages
- [Feature] Rspamadm: Allow to rewrite headers in messages
- [Feature] Selectors: Add
ipmask
processor
- [Feature] Settings: Allow hostname match
- [Feature] Settings: Allow local when selecting settings
- [Feature] Settings: Allow multiple selectors
- [Feature] Settings: Allow to inverse conditions
- [Feature] Support User-Agent in HTTP requests
- [Feature] Support ed25519 dkim keys generation
- [Feature] Try to filter bad unicode types during normalisation
- [Feature] external_services - oletools (olefy) support
- [Feature] lua_scanners - icap protocol support
- [Feature] lua_scanners - spamassassin spam scanner
- [Fix] Add filter for absurdic URLs
- [Fix] Add some more cases for Received header
- [Fix] Allow to disable/enable composite symbols
- [Fix] Arc: Use a separated list of headers for arc signing
- [Fix] Archive: Final fixes for 7z archives
- [Fix] Clickhouse: Fix database usage
- [Fix] Controller: Make save stats timer persistent
- [Fix] Core: Detect encrypted rarv5 archives
- [Fix] Core: Don’t detect language twice
- [Fix] Core: Fix address rotation bug
- [Fix] Core: Fix content calculations for message parts
- [Fix] Core: Fix emails comments parsing and other issues
- [Fix] Core: Fix etags support
- [Fix] Core: Fix headers folding on the last token
- [Fix] Core: Fix iso-8859-16 encoding
- [Fix] Core: Fix log_urls flag (and encrypted logging)
- [Fix] Core: Fix part length when dealing with boundaries
- [Fix] Core: Fix parts distance calculations
- [Fix] Core: Fix processing of NDNs of certain type
- [Fix] Core: Implement logic to find some bad characters in URLs
- [Fix] Core: treat nodes with ttl properly in lru cache
- [Fix] Fix Content-Type parsing
- [Fix] Fix HTTP headers signing case
- [Fix] Fix control interface
- [Fix] Fix deletion of the duplicate headers
- [Fix] Fix emails filtering in emails module
- [Fix] Fix greylisting log message and logic
- [Fix] Fix issues with storing of the accepted addr in rspamd control
- [Fix] Fix maps object update race condition
- [Fix] Fix memor leaks and whitespace processing
- [Fix] Fix processing of null bytes in headers
- [Fix] Fix rcpt_mime and from_mime in user settings
- [Fix] Fix rfc2047 decoding for CD headers
- [Fix] Fix rfc2231 for Content-Disposition header
- [Fix] Fix setting of the subject pattern in config
- [Fix] Greylist: fix records checking
- [Fix] HTML: Another HTML comments exception fix
- [Fix] HTML: Another entities decoding logic fix
- [Fix] HTML: Fix HTML comments with many dashes
- [Fix] HTML: Fix entities in HTML attributes
- [Fix] HTML: Fix some more SGML tags issues
- [Fix] Ignore whitespaces at the end of value in DKIM records
- [Fix] MID module: Fix DKIM domain matching
- [Fix] Milter_headers: Fix remove_upstream_spam_flag and modernise config
- [Fix] Mime_parser: Fix issue with parsing of the trailing garbadge
- [Fix] Mime_parser: Fix parsing of mime parts without closing boundary
- [Fix] Multimap: Fix operating with userdata
- [Fix] Process orphaned
symbols
section
- [Fix] Rdns: Fix multiple replies in fake replies
- [Fix] Rework groups scores definitions
- [Fix] Set proper element when reading data from Sentinel
- [Fix] Set rspamd user to initialise supplementary groups on reload
- [Fix] Settings: Fix selectors usage
- [Fix] Sort data received from Sentinel to avoid constant replacing
- [Fix] groups.conf - filename typo
- [Fix] lua_scanner - oletools typos, logging
- [Fix] lua_scanners - actions and symbol_fail
- [Fix] lua_scanners - fix luacheck
- [Fix] lua_scanners - kaspersky - response with fname
- [Fix] lua_scanners - savapi redis prefix
- [Fix] tests - antivirus - fprot symbols
- [Project] Add concept of flexible actions
- [Project] Add heuristical from parser to received parser
- [Project] Add new flags to clickhouse, redis and elastic exporters
- [Project] Attach new received parser
- [Project] Fallback to callbacks from coroutines
- [Project] Implement keep-alive support in lua_http
- [Project] Lua_udp: Implement fully functional client
- [Project] Plug keepalive knobs into http connection handling
- [Project] Rspamadm: Add
modify
tool
- [Rework] Convert rspamd-server to a shared library
- [Rework] Dcc: Rework DCC plugin
- [Rework] Enable explicit coroutines symbols
- [Rework] Rework telephone urls parsing logic
- [Rework] Rewrite RBL module
- [Rework] Settings: Rework settings check
- [Rework] Slashing: Distinguish lualibdir, pluginsdir and sharedir
- [Rework] Unify task_timeout
- [Rework] Use VEX instructions in assembly, relocate
- [WebUI] Notify user if uploaded data was not learned
- [WebUI] Remove redundant condition
We have released Rspamd 1.8.3 today.
There are no incompatible changes introduced with this version to our best knowledge. However, due to Bayes changes, you might see slightly different Bayes outcomes (not likely).
The most important features and fixes
-
Large Unicode handling rework
Rspamd now provides better access to normalized/unnormalized unicode. There are various of changes in the internal routines that work with Unicode, including statistics, language detector and regular expressions. The outcome of this project is the ability to fight against certain techniques applied by spammers to obfuscate messages.
-
Critical fixes related to Unicode
We have added some fail-safety checks against certain types of messages that could cause Rspamd crashes due to invalid unicode in headers. This has been also backported to 1.8.2.
-
Redis sentinel support
Rspamd 1.8.3 includes limited support for Redis Sentinel to allow high-availability for access to the non-volatile data. You can get more details on the Redis documentation page
-
Kaspersky antivirus support
Rspamd now supports Kaspersky antivirus using its clamav
compatible interface via antivirus module
-
Improvements of the Authentication-Results header
Now, Rspamd produces more readable Authentication-Results
header used by milter_headers and arc modules. It now can deal with multiple DKIM signatures, provides selector information and more extended (and traditional) data about SPF checks.
-
Better statistical tokens
We continue to improve Bayes filtering quality by adding more tokens produced from URLs found in the text. In some rare cases this might cause slightly changed results with pre-trained statistical corpus.
-
Better and RFC conformant support of pct
in DMARC module
Full list of the meaningful changes
- [CritFix] Make flags mutually exclusive for mime parts
- [CritFix] Strictly deny unencoded bad utf8 sequences in headers
- [Feature] Add Kaspersky antivirus support
- [Feature] Add method to get dkim results
- [Feature] Add more words regexp classes
- [Feature] Allow to choose words format in
rspamadm mime
- [Feature] Allow to get all types of words from Lua
- [Feature] Allow to get task flags in C expressions
- [Feature] Allow to require encryption when accepting connections
- [Feature] Ignore bogus whitespaces in the words
- [Feature] Implement more strict configuration tests
- [Feature] Improve SPF results in Authentication-Results
- [Feature] Support ClickHouse database
- [Fix] Add fail-safety for utf8 regexps
- [Fix] Do not trigger BROKEN_CONTENT_TYPE on innocent text parts
- [Fix] Emit error if connection has been terminated with no stop pattern
- [Fix] Fix boundaries checks in embedded messages
- [Fix] Fix double free
- [Fix] Perform policy downgrade on sample out, add tests
- [Fix] Properly escape utf8 regexps in hyperscan mode
- [Fix] Selectors - attachments args condition
- [Fix] Some fixes for raw parts
- [Fix] Treat learning errors as non-fatal
- [Fix] Use tld when looking for DKIM domains
- [Project] Words unicode structure rework
- [Project] Add preliminary Redis Sentinel support
- [Project] Improve Authentication-Results header
- [Project] Rework DKIM checks results
- [Project] Use more generalised API to produce meta words
We have released Rspamd 1.8.2 today.
There are no incompatible changes introduced with this version to our best knowledge. However, due to Bayes changes, you might see slightly different Bayes outcomes. rspamd_update
module is now disabled by default as we are working on a better and safer solution that will be available in the next Rspamd version.
The most important features and fixes
-
Critical fixes in SURBL module
SURBL module could insert absurd scores and skip group symbol limit in some cases.
-
Critical fixes in Bayes statistics
Bayes algorithm has been changed significantly in this release:
- If chi-squared method fails due to
exp
underflow, Rspamd will switch to a naive method
- Tokens weighting has been reworked to match chi-squared model
- OSB weights have been adjusted to discriminate more far tokens and increase weight for closer tokens
- Reworked meta-tokens algorithm, it is now moved to Lua
- Skip stop words in statistics
-
Fuzzy check rework
In this version, we have moved selection algorithm from C to Lua with more flexibility about parts and data selection.
-
Critical fixes in Ratelimit module
We have found and fixed various issues in Ratelimit plugin and restored both traditional and modern syntax of ratelimits. Presumably, all version prior this one are broken when dealing with ratelimits.
-
Major rework of all asynchronous rules and events
In Rspamd 1.8.2, we have introduced new model of asynchronous rules processing with the following features:
- More straightforward in terms of the control flow
- It is possible to get better debugging info in case of issues (including the concrete line of code)
- It is possible now to see the real execution time of rules and show slow rules including network waiting
- New model is less complex than the previous one
-
Critical issue in ARC module
We have fixed the issue in ARC module that could lead to around 11% of wrong signatures being produced due to an incorrect \0
handling in raw RSA signature.
-
Add support for encrypted cookies in Message-ID
It is now possible to generate and check message-ids that require no storage
and Rspamd even don’t need to observe outbound messages. However, it
will be able to detect replies to our messages and get some more
information if needed:
We generate message id using nonce||aesencrypt(nonce, k, known_cookie)
then we can just take a look into In-Reply-To header
and apply
read_nonce() + aesdecrypt(nonce, k)
to compare result with
known_cookie.
Nonce length will be 16 bytes (32 hex encoded) and another 16 bytes
could be used to encrypt secret cookie + some random thing derived from
the message itself.
- Added DWL support in the default configuration
- Add support of words regexps
- Allow to set custom limits for upstream lists
- Detect orphaned parts and attach them to message
- Support query arguments in controller’s custom commands
- Write DKIM selector in dkim allow/reject symbols
Full list of the meaningful changes
- [Conf] Add DWL support in the default configuration
- [Conf] Disable rspamd_update by default (again)
- [Conf] Fix configuration sample for ratelimit
- [CritFix] Disable broken url tags by default
- [CritFix] Fix \0 processing when doing RSA sign
- [CritFix] Fix adding symbols to their primary groups
- [Feature] Add
rspamadm cookie
utility
- [Feature] Add specialised functions for generating encrypted cookies
- [Feature] Add support of cookies in replies module
- [Feature] Add support of words regexps
- [Feature] Allow to add 3rd party clang plugins
- [Feature] Allow to create lua regexps from glob or plain patterns
- [Feature] Allow to set custom limits for upstream lists
- [Feature] Detect orphaned parts and attach them to message
- [Feature] Filter tokens in bayes
- [Feature] Fold b= value when doing arc sealing
- [Feature] Ignore cookies in the future and too old in the past
- [Feature] Skip stop words in statistics
- [Feature] Store stop words and allow to query them
- [Feature] Support query arguments in controller’s custom commands
- [Feature] Tune upstream limits in Rspamd proxy
- [Feature] Use different callback symbols for different uribls
- [Feature] Write DKIM selector in dkim allow/reject symbols
- [Fix] Add obs_fws state support to eoh state machine
- [Fix] Add sanity check when applying mime boundaries heuristic
- [Fix] Antivirus - virus names with 0 were recognized as tables
- [Fix] Disable headernames in bayes temporarily
- [Fix] Do not allow syntax errors in include files…
- [Fix] Do not allow to merge an object with an array (or vice versa)
- [Fix] Don’t perform forged recipients check for missing recipients
- [Fix] Fix DKIM based RBLs
- [Fix] Fix actrie implementation (sync from upstream), fixed OOB read
- [Fix] Fix explicit methods call in selectors
- [Fix] Fix extraction of additional parts
- [Fix] Fix finalization for internal plugins
- [Fix] Fix override_defaults function
- [Fix] Fix squeezed symbols when using settings
- [Fix] Fix urls insertion in Clickhouse module
- [Fix] Furhter fixes to ratelimits logic
- [Fix] Ignore signatures when looking for boundaries
- [Fix] Properly set learned count
- [Fix] Really fix ratelimits configuration and work
- [Fix] Remove ambigious format flag from printf
- [Fix] Restore URLs exporting in ClickHouse plugin
- [Fix] Rework bayes calculations…
- [Fix] Switch from chi-square to naive for large Fisher value
- [Fix] Treat normal password as enable password if there is no enable password
- [Fix] Use proper syntax for making DNS requests
- [Fix] Various fixes in embedded plugins
- [Project] Change fuzzy check selection logic to lua_fuzzy library
- [Project] Rework async events and symbols
- [Project] Move all metatokens in Bayes to lua_stat from C
- [WebUI] Add history rows per page control