From 652092d291fd415d98ff392a372bc9940b98ad22 Mon Sep 17 00:00:00 2001 From: hanscees Date: Wed, 31 Jan 2024 21:03:39 +0100 Subject: [PATCH] changed rspamd.h plus environment --- docs/content/config/environment.md | 2 +- target/scripts/startup/setup.d/security/rspamd.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/config/environment.md b/docs/content/config/environment.md index fe7772c9..c775c27c 100644 --- a/docs/content/config/environment.md +++ b/docs/content/config/environment.md @@ -452,7 +452,7 @@ Can be used to control the score when the [`HFILTER_HOSTNAME_UNKNOWN` symbol](#r Default: 6 (which corresponds to the `add_header` action) -##### RSPAMD_Neural +##### RSPAMD_NEURAL Can be used to enable or disable the [Neural network module][rspamd-docs-neural-network]. This is an experimental anti-spam weigh method using three neuaral networks in the configuration added here. As far as we can tell it trains itsself by using other modules to find out what spam is. It will take a while (a week or more) to train its first neural network. The config trains new networks all the time and discards of old networks. Since it is experimental it is switched of by default. diff --git a/target/scripts/startup/setup.d/security/rspamd.sh b/target/scripts/startup/setup.d/security/rspamd.sh index 3c733d23..98f83de6 100644 --- a/target/scripts/startup/setup.d/security/rspamd.sh +++ b/target/scripts/startup/setup.d/security/rspamd.sh @@ -187,7 +187,6 @@ function __rspamd__setup_default_modules() { local DISABLE_MODULES=( clickhouse elastic - neural reputation spamassassin url_redirector @@ -296,6 +295,7 @@ function __rspamd__setup_neural() { __rspamd__log 'debug' 'Neural module is disabled' rm -f "${RSPAMD_LOCAL_D}/neural.conf" rm -f "${RSPAMD_LOCAL_D}/neural_group.conf" + __rspamd__helper__enable_disable_module 'neural' 'false' fi }