# Integration with rspamd?

**URL:** <https://discourse.crowdsec.net/t/integration-with-rspamd/2001>\
**Category:** crowdsec\
**Created:** [September 3, 2024, 2:41pm UTC](https://discourse.crowdsec.net/t/integration-with-rspamd/2001 "2024-09-03T14:41:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_VZ](https://avatars.discourse-cdn.com/v4/letter/_/e495f1/32.png) [@\_VZ](https://discourse.crowdsec.net/u/_VZ)\
**Post date:** [September 3, 2024, 2:41pm UTC](https://discourse.crowdsec.net/t/integration-with-rspamd/2001/1 "2024-09-03T14:41:40Z")

</div>

Would anyone have any suggestions about integrating crowdsec with [rspamd](https://rspamd.com/)? Ideally I’d like to add some (significant but not sufficient on its own) spam weight for the messages from the IPs banned by the CAPI with “exim-spam” reason, but the only way I can think of doing it seems rather complicated (using custom script bouncer update a file/database with the IPs and read this file/DB form rspamd using its own scripting support), so I wonder if I’m missing something simpler?

Thanks in advance for any ideas!

---

<div class="post-metadata">

**Author:** ![ne20002](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/ne20002/32/1012_2.png) [@ne20002](https://discourse.crowdsec.net/u/ne20002)\
**Post date:** [September 24, 2024, 3:35pm UTC](https://discourse.crowdsec.net/t/integration-with-rspamd/2001/2 "2024-09-24T15:35:15Z")

</div>

Here you may find script to adapt. I use it to add fail2ban decisions to Crowdsec. Something similar should work for you.

> <https://github.com/fail2ban/fail2ban/pull/3407>
>
> Hi @sebres 
> 
> This is a draft for the crowdsec agent. Any feedback welcome.
