diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-30 11:44:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-30 11:44:53 +0100 |
commit | f58e36df4d8e262134dc145bb08757928fa774a9 (patch) | |
tree | 09457a0819aaa5072e7d4ca50fe9783a3600e999 /src/libserver/cfg_rcl.c | |
parent | 7d8e0702811eeaf4ca86c17b3c378be37c43b7eb (diff) | |
download | rspamd-f58e36df4d8e262134dc145bb08757928fa774a9.tar.gz rspamd-f58e36df4d8e262134dc145bb08757928fa774a9.zip |
[Feature] Allow limiting of the inbound message size
- Set default limit to 50MB
- Reply even in case of HTTP errors
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r-- | src/libserver/cfg_rcl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 64a96bf0f..ad0629f25 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1962,6 +1962,12 @@ rspamd_rcl_config_init (struct rspamd_config *cfg) G_STRUCT_OFFSET (struct rspamd_config, magic_file), 0, "Path to a custom libmagic file"); + rspamd_rcl_add_default_handler (sub, + "max_message", + rspamd_rcl_parse_struct_integer, + G_STRUCT_OFFSET (struct rspamd_config, max_message), + RSPAMD_CL_FLAG_INT_SIZE, + "Maximum size of the message to be scanned"); /* New DNS configuration */ ssub = rspamd_rcl_add_section_doc (&sub->subsections, "dns", NULL, NULL, UCL_OBJECT, FALSE, TRUE, |