# HG changeset patch # User Matthew Wild # Date 1488814787 0 # Node ID 8908d001faf3de644df2dd03314b05aad3e2222c # Parent 08f2d2a61af85f70214cef72617f8c08268f42a0 mod_firewall: spam-blocking.pfw: Allow groupchat messages and presence to offline full JIDs diff -r 08f2d2a61af8 -r 8908d001faf3 mod_firewall/scripts/spam-blocking.pfw --- a/mod_firewall/scripts/spam-blocking.pfw Mon Mar 06 01:05:38 2017 +0100 +++ b/mod_firewall/scripts/spam-blocking.pfw Mon Mar 06 15:39:47 2017 +0000 @@ -91,6 +91,12 @@ JUMP CHAIN=user/spam_check_message_custom +# Type 'groupchat' messages addressed to an offline full JID are harmless, +# and should be routed normally to handle MUC 'ghosts' correctly +TO: <*>@<*>/<*> +TYPE: groupchat +PASS. + # Non-chat message types often generate pop-ups in clients, # so we won't accept them from strangers NOT TYPE: chat @@ -107,6 +113,11 @@ JUMP CHAIN=user/spam_check_presence_custom +# Presence to offline full JIDs is harmless, and should be routed +# normally to handle MUC 'ghosts' correctly +TO: <*>@<*>/<*> +PASS. + # These may be received if rosters get out of sync and are harmless # because they will not be routed to the client unless necessary TYPE: unsubscribe|unsubscribed