aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-19 17:18:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-19 17:18:43 +0100
commit13a13b60f155603393c5575ccfdeaa877cb613b6 (patch)
tree50d47f0d708d1b41dedb758928c7073f29c9a105 /src/libserver/cfg_rcl.c
parenta102caecf7ab481bf4f3f5f4a233a5e64467e4d2 (diff)
downloadrspamd-13a13b60f155603393c5575ccfdeaa877cb613b6.tar.gz
rspamd-13a13b60f155603393c5575ccfdeaa877cb613b6.zip
[Minor] Add `max_recipients` config knob
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index dc568297b..885ebad4d 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -2241,6 +2241,12 @@ rspamd_rcl_config_init (struct rspamd_config *cfg, GHashTable *skip_sections)
RSPAMD_CL_FLAG_INT_32,
"Maximum count of URLs to process to avoid DoS (default: 10240)");
rspamd_rcl_add_default_handler (sub,
+ "max_recipients",
+ rspamd_rcl_parse_struct_integer,
+ G_STRUCT_OFFSET (struct rspamd_config, max_recipients),
+ RSPAMD_CL_FLAG_INT_32,
+ "Maximum count of recipients to process to avoid DoS (default: 1024)");
+ rspamd_rcl_add_default_handler (sub,
"max_blas_threads",
rspamd_rcl_parse_struct_integer,
G_STRUCT_OFFSET (struct rspamd_config, max_blas_threads),