Hi, I have installed and configured CrowdSec using the following packages
crowdsec 1.6.0-1
crowdsec-firewall-bouncer 0.0.29-1
luci-app-crowdsec-firewall-bouncer git-25.130.39098-a843514
on my x86 OpenWRT router
Target Platform x86/64
Firmware Version OpenWrt 23.05.5 r24106-10cc5fcd00 / LuCI openwrt-23.05 branch git-25.070.50735-0322352
Kernel Version 5.15.167
I am following both CrowdSec
https://docs.crowdsec.net/docs/notification_plugins/intro
and OpenWRT documentation
https://openwrt.org/docs/guide-user/services/crowdsec
to enable the email notifications.
When I try listing configured plugins I get the following message
# cscli notifications list
FATA[2025-05-15T06:36:02Z] can't build profiles configuration: notification plugin 'email_default' does not exist
According to the CrowdSec config installed with the package, plugins should be located in
# cat /etc/crowdsec/config.yaml
...
config_paths:
notification_dir: /etc/crowdsec/notifications/
plugin_dir: /usr/local/lib/crowdsec/plugins
...
but this folder structure was not created during installation.
According to the package info I found online, the crowdsec notification plugins are located in /usr/bin instead.
# ls -la /usr/bin | grep notification
-rwxr-xr-x 1 root root 10621872 Apr 13 08:50 notification-dummy
-rwxr-xr-x 1 root root 10774032 Apr 13 08:50 notification-email
-rwxr-xr-x 1 root root 11165872 Apr 13 08:50 notification-http
-rwxr-xr-x 1 root root 11288784 Apr 13 08:50 notification-sentinel
-rwxr-xr-x 1 root root 11260528 Apr 13 08:50 notification-slack
-rwxr-xr-x 1 root root 11157680 Apr 13 08:50 notification-splunk
I tried symlinking notification plugins from /usr/bin to /usr/local/lib/crowdsec/plugins and adding /usr/bin as my plugin path to the CrowdSec config, but I still can't get the notifications to work.
When researching the issue online, I found one unmerged commit on the github, but it didn't help me finding the answer. There were no open bug reports for crowdsec on the github either, so I am assuming the package was configured and built properly.
I will greatly appreciate any help in starting the email notifications.
Please share if you also know why default plugins location was changed in the openwrt crowdsec package.