mod_firewall: scripts: spam-blocklists: Check sender and inviter of MUC invitations against blocklist
authorMatthew Wild <mwild1@gmail.com>
Thu, 08 Jun 2023 11:30:39 +0100
changeset 5536 d84757f9adcb
parent 5535 af2778f4ee29
child 5537 09311a8a3cfa
mod_firewall: scripts: spam-blocklists: Check sender and inviter of MUC invitations against blocklist
mod_firewall/scripts/spam-blocklists.pfw
--- a/mod_firewall/scripts/spam-blocklists.pfw	Thu Jun 08 11:28:56 2023 +0100
+++ b/mod_firewall/scripts/spam-blocklists.pfw	Thu Jun 08 11:30:39 2023 +0100
@@ -8,3 +8,13 @@
 
 CHECK LIST: blocklist contains $<@from|host>
 BOUNCE=policy-violation (Your server is blocked due to spam)
+
+::user/spam_check_muc_invite_custom
+
+# Check the server we received the invitation from
+CHECK LIST: blocklist contains $<@from|host>
+BOUNCE=policy-violation (Your server is blocked due to spam)
+
+# Check the inviter's JID against the blocklist, too
+CHECK LIST: blocklist contains $<{http://jabber.org/protocol/muc#user}x/invite@from|host>
+BOUNCE=policy-violation (Your server is blocked due to spam)