From d1e8fbc470770d768868238cd2d07ca426d0d3c1 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 19 Apr 2021 14:36:17 +0200 Subject: [PATCH] Add nrows history limit to Rspamd docs --- docs/u_e-rspamd.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/u_e-rspamd.md b/docs/u_e-rspamd.md index bdc4fa461..a3f15b2cb 100644 --- a/docs/u_e-rspamd.md +++ b/docs/u_e-rspamd.md @@ -224,3 +224,19 @@ redis-cli -h redis DEL Q_LAST_NOTIFIED quarantine_notify.py ``` +## Increase history retention + +By default Rspamd keeps 1000 elements in the history. + +The history is stored compressed. + +It is recommended not to use a disproportionate high value here, try something along 5000 or 10000 and see how your server handles it: + +Edit `data/conf/rspamd/local.d/history_redis.conf`: + +``` +nrows = 1000; # change this value +``` + +Restart Rspamd afterwards: `docker-compose restart rspamd-mailcow` +