How to filter spam with Rspamd
Updated 10/16/2026
Rspamd analyzes every message and gives it a spam score based on several signals: sender reputation, content, authentication. It is faster than the old SpamAssassin.
If you use Mailcow
Rspamd comes already included and configured. You manage it from the web interface, where you see statistics and can adjust thresholds.
Manual install
apt-get update -y
apt-get install -y rspamd
systemctl enable --now rspamd
How the score works
- Below a threshold: the message passes.
- Above a threshold: it is marked as spam or moved to the spam folder.
- Above a higher threshold: it is rejected outright.
Important signals
Rspamd checks the sender's SPF, DKIM and DMARC, so your correct configuration helps on the receiving side too, see SPF, DKIM and DMARC.
Fine tuning
Periodically review messages wrongly marked as spam (false positives) and adjust the rules. A too aggressive filter hides legitimate email, a too permissive one lets spam through.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
How to send email from your app over SMTP
Configure your app to send transactional emails (confirmations, password resets) over SMTP.
Updated 10/16/2026EmailHow to secure a mail server
A misconfigured mail server becomes a spam source. Here are the essential security rules.
Updated 10/16/2026EmailHow to check if your IP is on an email blacklist
If your emails are rejected, your IP might be on a blocklist. Here is how to check and what to do.
Updated 10/16/2026