Comparison

mod_block_outgoing/README.markdown @ 2400:bd3a1df128a4

Add documentation for mod_block_outgoing
author Michael Vetter <jubalh@openmailbox.org>
date Sat, 26 Nov 2016 00:34:05 +0100
child 5007:34fb3d239ac1
comparison
equal deleted inserted replaced
2399:913bd81a4d3c 2400:bd3a1df128a4
1 ---
2 summary: 'Block outgoing stanzas from users'
3 ...
4
5 Introduction
6 ============
7
8 This module blocks all outgoing stanzas from a list of users.
9
10 Using
11 =====
12
13 Add mod_block_outgoing to the enabled modules in your config file:
14 ``` {.lua}
15 modules_enabled = {
16 -- ...
17 "block_outgoing",
18 -- ...
19 }
20 ```
21
22 Either in a section for a certain host or the global section define which users and what stanzas to block:
23 ``` {.lua}
24 block_outgoing_users = { "romeo@example.com", "juliet@example.com" }
25 block_outgoing_stanzas = { "message", "iq", "presence" }
26 ```
27
28 block_outgoing_stanzas defaults to "message" if not specified.