Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-12-03 15:00:18 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2022-03-21 19:11:54 +0300
commit9096248744e858975b30a7279323a793390afd6e (patch)
tree4ceffca46e6b0fa59c607cd6f4c5fd0244ac65ef /doc
parente181724033cd525fc9840594e545f1a2e3aa0f4b (diff)
Add anti abuse detection
* Trigger alert for number of recipients of a single message * Trigger alert for number of messages per time period (15m, 1h, 1d) Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'doc')
-rw-r--r--doc/admin.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/admin.md b/doc/admin.md
index 41a5622d8..90716eb41 100644
--- a/doc/admin.md
+++ b/doc/admin.md
@@ -44,6 +44,30 @@ Turn off TLS verfication for IMAP/SMTP. This happens globally for all accounts a
'app.mail.verify-tls-peer' => false
```
+### Anti-abuse alerts
+
+The app can write alerts to the logs when users send messages to a high number of recipients or sends a high number of messages for a short period of time. These events might indicate that the account is abused for sending spam messages.
+
+To enable anti-abuse alerts, you'll have to set a few configuration options [via occ](https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html).
+
+```bash
+# Turn alerts on
+occ config:app:set mail abuse_detection --value=on
+# Turn alerts off
+occ config:app:set mail abuse_detection --value=off
+
+# Alert when 50 or more recipients are used for one single message
+occ config:app:set mail abuse_number_of_recipients_per_message_threshold --value=50
+
+# Alerts can be configured for three intervals: 15m, 1h and 1d
+# Alert when more than 10 messages are sent in 15 minutes
+occ config:app:set mail abuse_number_of_messages_per_15m --value=10
+# Alert when more than 30 messages are sent in one hour
+occ config:app:set mail abuse_number_of_messages_per_1h --value=30
+# Alert when more than 100 messages are sent in one day
+occ config:app:set mail abuse_number_of_messages_per_1d --value=100
+```
+
## Troubleshooting
### Logging