Rspamd scores inbound mail using rules, statistics, and external lists, then returns a verdict mail servers can use to reject, tag, or route messages.
Overview
Rspamd is a spam filtering system and email processing framework. Each message is evaluated with regular expressions, statistical analysis, custom services, and URL block lists. Results can drive MTA actions such as rejection or special headers, and may include DKIM-related information or suggested message changes.
It can act as a Milter and talk directly to common MTAs such as Postfix or Sendmail. The design targets high throughput, processing many messages per second in parallel.
A Lua API exposes message processing and supports asynchronous network access to DNS, HTTP, and other TCP or UDP services. Many filtering modules ship enabled by default; the documentation lists built-in modules. Custom rules and plugins can be written with the Lua API when defaults are not enough.
Packages exist for major Linux distributions and for FreeBSD, NetBSD, and OpenBSD. The project recommends its own packages where available because some distribution packages may lag and affect filtering quality.
Key features
- Multi-rule message scoring
- Milter integration with common MTAs
- Statistical and regex checks
- URL blacklist support
- Comprehensive Lua plugin API
- Asynchronous DNS and HTTP lookups
- Built-in spam modules out of the box
- High parallel message throughput
Use cases
- Inbound mail spam filtering
- MTA mail processing integration
- Custom spam rules in Lua
- DKIM-aware mail handling