Rspamd 4.3: Security Fixes & Phishing Detection Upgrades
Published 2026-11-16Category: Guides
Rspamd 4.3 patches worker crashes, hardens HTTP/TLS reuse, adds phishing link scoring, enforces DKIM 1024-bit minimum, tightens ARC forwarding trust
Table of contents
- 1.Introduction & Key Highlights
- 2.Core Changes & Parameter Comparison
- 3.Deep Dive & Operational Details
- 3.1.Security Vulnerability Fixes & HTTP Stack Hardening
- 3.2.Authentication Chain Tightening: SPF/DKIM/ARC Behavior Changes
- 3.3.Attachment & HTML Deep Parsing Enhancements
- 4.Scenario-Based Selection & Pitfall Checklist
- 5.FAQ
- 6.Sources & References

Introduction & Key Highlights
Rspamd, a widely adopted open-source mail spam filtering system, focuses version 4.3.0 on security hardening and detection accuracy. This release fixes several vulnerabilities that could crash worker processes or drop connections, covering malformed HTTP headers, empty Deliver-To values, and a use-after-free defect in Milter sessions. The HTTP connection pool reuse logic has been reworked to correct missing verification of TLS settings against target addresses, and protection against requests to local and special-purpose network addresses has been expanded. For phishing emails, a new independent scoring mechanism evaluates discrepancies between displayed and actual link destinations, a trust map identifies legitimate link-rewriting services, and default scores remain conservative to limit false positives. On the authentication front, SPF record evaluation restores original order, DKIM rejects duplicate tags, invalid key types, and RSA keys shorter than 1024 bits, and ARC forwarding trust is tightened. Attachment scanning now handles alternate filenames correctly, while HTML parsing gains detection of CSS hiding techniques and tiny tracking pixels. For self-hosted mail operators, this is an important security and functional maintenance update that should be included in rolling upgrade plans.
Core Changes & Parameter Comparison
| Dimension | 4.3 Key Changes | Impact Scope | Ops Notes |
|---|---|---|---|
| Security Fixes | Worker crashes (malformed HTTP headers, empty Deliver-To, Milter use-after-free) | All internet-exposed Rspamd instances | Upgrade first to avoid DoS risk |
| HTTP Connection Pool | Validates TLS settings and target address on reuse; strengthens SSRF protection | Modules making external HTTP requests (URL reputation, phishing detection) | Verify firewall/egress policies allow legitimate targets |
| Phishing Detection | Separate scoring for display/actual link mismatch; adds trust map; conservative defaults | Inbound mail phishing verdicts | Watch false-positive rate; adjust phishing module weight if needed |
| SPF Authentication | Restores original record order evaluation; fixes misjudgment from reordering | All SPF validation scenarios | No config change required; automatic |
| DKIM Authentication | Rejects duplicate tags, invalid key types, RSA < 1024 bits | Inbound DKIM signature verification | Senders using weak keys will be rejected; notify partners in advance |
| ARC Authentication | Tightens trust conditions for forwarded authentication results | Mail forwarding / mailing list scenarios | Confirm upstream forwarding chain complies with new policy |
| Attachment Scanning | Correctly processes archive alternate filenames; fixes trailing space/dot evasion | Malicious attachment detection | Works best combined with external scanners like clamav |
| HTML Parsing | Resists CSS hiding, excessive elements, tiny tracking pixels (HTML_TINY_PIXEL_TRACKER) |
HTML mail content analysis | New rules enabled by default; adjust via symbol scores |
Deep Dive & Operational Details
Security Vulnerability Fixes & HTTP Stack Hardening
Rspamd 4.3 resolves three classes of defects that could trigger worker crashes: a pointer dereference when parsing malformed HTTP headers, an out-of-bounds logic branch caused by an empty Deliver-To header, and a use-after-free during Milter session cleanup. All are remotely triggerable via crafted mail or HTTP requests, constituting a denial-of-service risk. The HTTP connection pool rework is the core low-level improvement: previous versions did not re-verify TLS parameters (such as SNI, certificate validation mode) against the target host when reusing connections, expanding the attack surface for man-in-the-middle or SSRF. The new implementation binds connection context to TLS configuration and compares each item before reuse; it also expands the blocklist for local_networks and special-use addresses (RFC 1918/6598/3927, etc.) to prevent accidental probing of internal services. Operators should confirm that connect_timeout, max_connections, and related parameters in the http section of rspamd.conf match upstream service SLAs, and after upgrading watch rspamd.log for http connection reused entries to ensure no abnormal reconnection storms appear.
Authentication Chain Tightening: SPF/DKIM/ARC Behavior Changes
SPF evaluation restores “original order” semantics, fixing a bug where internal deduplication and sorting caused abnormal include mechanism priority — especially visible in complex multi-domain SPF records. DKIM adds three mandatory rejections: duplicate tags within a single signature (e.g., double b=), non-standard key types (only rsa and ed25519 are allowed), and RSA modulus smaller than 1024 bits. This directly blocks legacy weak-key signed mail; if upstream partners still use 512/768-bit keys, dkim_pubkey_invalid symbols will appear and cause rejection. Before upgrading, run a syntax check with rspamd -c /etc/rspamd/rspamd.conf -t, and for critical sending domains generate compliant keys using rspamadm dkim_keygen -b 2048 -s 202401 -d example.com for distribution. ARC verification introduces an arc_trusted_forwarders map; only authentication results from listed forwarding hosts are trusted, preventing malicious forwarding from forging chains. Maintain a list of trusted forwarder IPs/domains in arc.conf, otherwise mailing lists and auto-forwarding scenarios may produce arc_policy_fail.
Attachment & HTML Deep Parsing Enhancements
Archive scanning corrects “alternate filename” handling: attackers can plant same-named executables inside ZIP/7z archives and use the alternate name field to deceive extractors; the old version checked only the primary filename, leading to misses. The new logic recursively traverses all entry names, combines with the filename rule set to flag high-risk extensions (.exe .scr .js, etc.), and normalizes comparison against trailing spaces, dots, and Unicode control characters. The HTML parser adds the HTML_TINY_PIXEL_TRACKER symbol, scoring mails with very short body text (<50 characters) that contain 1×1 or 0×0 external images — typical for address liveness probing. CSS rule parsing now recognizes hiding techniques such as display:none, visibility:hidden, opacity:0, and works with html_element_count thresholds to counter element-stuffing evasion. Operators can adjust trust_map in local.d/phishing.conf to whitelist legitimate link-rewriting services (e.g., marketing platform tracking domains) and avoid false positives on business mail.
Scenario-Based Selection & Pitfall Checklist
- Public-Facing Mail Gateway: Perform rolling upgrade within a maintenance window; prioritize validation of HTTP connection pool and Milter stability; monitor worker restart counts and HTTP error rates for 24 hours post-upgrade.
- Multi-Tenant Hosted Mail Service: The DKIM 1024-bit floor will block mail from legacy customer domains. Notify customers at least two weeks ahead to rotate keys, and update signing key length policy in
dkim_signing.confsimultaneously. - Mailing List / Forwarding Gateway:
arc_trusted_forwardersmay be empty by default; explicitly configure it with upstream MX IPs, otherwise forwarded mail authentication chains break and delivery fails. - High False-Positive Sensitivity (Finance/Healthcare): New independent phishing scoring and HTML tiny-pixel rules may increase false positives. In
local.d/phishing.confandlocal.d/html.conf, reduce correspondingsymbolweights by 30–50% and establish a whitelist domain map. - Containerized Deployment (Docker/K8s): After image update, reload config volumes; watch
rspamd.conf.d/overlay precedence. Add a/healthHTTP probe to health checks so orchestration layers detect stuck workers.
FAQ
After upgrading, DKIM rejects large volumes of legitimate mail — how to troubleshoot quickly?
Check logs for the dkim_pubkey_invalid symbol and confirm the rejected signature’s key length and type. As a temporary mitigation, set allow_weak_keys = true in local.d/dkim_signing.conf (not recommended for long-term use) while notifying senders to generate ≥2048-bit RSA or Ed25519 keys.
HTML_TINY_PIXEL_TRACKER rule false-positives on business marketing mail — what to do?
Add a trust_map entry in local.d/phishing.conf marking the marketing platform’s tracking domains (e.g., trk.example.com) as trusted; or lower the weight via symbol { HTML_TINY_PIXEL_TRACKER { score = 0.5; } } and tune jointly with the html_element_count threshold.
In container environments, workers suffer frequent OOM kills after upgrade — is this a 4.3 regression?
The source did not disclose memory usage changes. Compare pre- and post-upgrade RSS peaks; check whether max_tasks and max_requests limits are set too high. If using the official rspamd.com/rspamd:4.3 image, verify that ulimit -n and RLIMIT_NOFILE are raised to at least 65535.
Sources & References
- Linuxiac: Rspamd 4.3 Spam Filtering System Gets Security Fixes, Better Phishing Detection (2026-11-16)
Spotted outdated pricing, stock, or expired coupons?See methodology & report an update →

