comparison mod_firewall/scripts/spam-blocking.pfw @ 2605:8908d001faf3

mod_firewall: spam-blocking.pfw: Allow groupchat messages and presence to offline full JIDs
author Matthew Wild <mwild1@gmail.com>
date Mon, 06 Mar 2017 15:39:47 +0000
parents a33edc07d829
children 879955a32a37
comparison
equal deleted inserted replaced
2604:08f2d2a61af8 2605:8908d001faf3
89 #### Rules for messages ########################################## 89 #### Rules for messages ##########################################
90 ::user/spam_check_message 90 ::user/spam_check_message
91 91
92 JUMP CHAIN=user/spam_check_message_custom 92 JUMP CHAIN=user/spam_check_message_custom
93 93
94 # Type 'groupchat' messages addressed to an offline full JID are harmless,
95 # and should be routed normally to handle MUC 'ghosts' correctly
96 TO: <*>@<*>/<*>
97 TYPE: groupchat
98 PASS.
99
94 # Non-chat message types often generate pop-ups in clients, 100 # Non-chat message types often generate pop-ups in clients,
95 # so we won't accept them from strangers 101 # so we won't accept them from strangers
96 NOT TYPE: chat 102 NOT TYPE: chat
97 JUMP CHAIN=user/spam_reject 103 JUMP CHAIN=user/spam_reject
98 104
104 110
105 #### Rules for presence stanzas ################################## 111 #### Rules for presence stanzas ##################################
106 ::user/spam_check_presence 112 ::user/spam_check_presence
107 113
108 JUMP CHAIN=user/spam_check_presence_custom 114 JUMP CHAIN=user/spam_check_presence_custom
115
116 # Presence to offline full JIDs is harmless, and should be routed
117 # normally to handle MUC 'ghosts' correctly
118 TO: <*>@<*>/<*>
119 PASS.
109 120
110 # These may be received if rosters get out of sync and are harmless 121 # These may be received if rosters get out of sync and are harmless
111 # because they will not be routed to the client unless necessary 122 # because they will not be routed to the client unless necessary
112 TYPE: unsubscribe|unsubscribed 123 TYPE: unsubscribe|unsubscribed
113 PASS. 124 PASS.