diff options
author | Matthew Fennell <matthew@fennell.dev> | 2025-08-11 13:39:36 +0100 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2025-08-11 13:39:36 +0100 |
commit | a97eb5541afd8287f66ae70ffb720b554a5bb467 (patch) | |
tree | 6a8944aeaad37c78f8091af5f5f2defceb978ccb | |
parent | 48b63bdce802f8050ff75af733e6c9cbaffe32b1 (diff) |
Add spam checking
Thankfully the servers I manage have not seen any spam, nevertheless,
I'd rather set up some kind of mitigation now, before it becomes a
problem.
-rw-r--r-- | files/prosody.cfg.lua.j2 | 8 | ||||
-rw-r--r-- | files/virtual_host.cfg.lua.j2 | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/files/prosody.cfg.lua.j2 b/files/prosody.cfg.lua.j2 index adb5e2a..320285a 100644 --- a/files/prosody.cfg.lua.j2 +++ b/files/prosody.cfg.lua.j2 @@ -8,6 +8,7 @@ modules_enabled = { "account_activity"; "admin_adhoc"; "admin_shell"; + "anti_spam"; "blocklist"; "bookmarks"; "bosh"; @@ -27,6 +28,7 @@ modules_enabled = { "ping"; "private"; "proxy65"; + "report_forward"; "roster"; "s2s_auth_dane_in"; "s2s_bidi"; @@ -39,6 +41,7 @@ modules_enabled = { "server_contact_info"; "server_info"; "smacks"; + "spam_reporting"; "stanza_debug"; "time"; "tls"; @@ -68,6 +71,11 @@ c2s_direct_tls_ports = { 5223 } s2s_direct_tls_ports = { 5270 } use_dane = true +anti_spam_services = { "xmppbl.org" } +report_forward_to = { + "submit@reports.xmppbl.org"; +} + turn_external_host = "{{ turn_server }}" turn_external_secret = "{{ turn_secret }}" diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2 index dfec9c2..4f5b7ca 100644 --- a/files/virtual_host.cfg.lua.j2 +++ b/files/virtual_host.cfg.lua.j2 @@ -41,9 +41,12 @@ Component "conference.{{ virtual_host }}" "muc" modules_enabled = { "muc"; "muc_mam"; + "muc_rtbl"; } log_all_rooms = true restrict_room_creation = "local" muc_room_default_public = false muc_room_default_public_jids = true + +muc_rtbl_jid = "xmppbl.org" |