Changeset

5532:d84757f9adcb

mod_firewall: scripts: spam-blocklists: Check sender and inviter of MUC invitations against blocklist
author Matthew Wild <mwild1@gmail.com>
date Thu, 08 Jun 2023 11:30:39 +0100
parents 5531:af2778f4ee29
children 5533:09311a8a3cfa
files mod_firewall/scripts/spam-blocklists.pfw
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)