[Rspamd-Users] Control rspamd depending on subject content
Andreas
rspamd at linuxmaker.com
Sat Jan 20 09:06:27 UTC 2024
Hello,
To avoid annoying spam that gets through Rspamd, I wrote this script
#!/bin/bash +x
if [ ! $UID = 0 ]
then
/usr/bin/su -
fi
/usr/bin/echo "$1" >> /etc/rspamd/local.d/maps.d/sender_domain_blacklist.map
/usr/bin/systemctl restart rspamd.service
which unfortunately still has to be fed with the domains manually.
Most emails have typical phrases such as “r_ezept-frei”, “Rezept-frei”, “pharmacy”, Pharma”
in the subject.
Can Rspamd be configured similarly to the script shown so that a reject is triggered
immediately depending on special terms in the subject?
Thanks and Regards
Andreas
More information about the Users
mailing list