From b8e0a38fc7a862fbe63a80cc78b592f9357869ff Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Mon, 29 Jan 2024 11:39:00 +0100 Subject: [PATCH] Apply suggestions from code review --- mailserver.env | 6 +++--- target/scripts/startup/setup.d/security/rspamd.sh | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mailserver.env b/mailserver.env index 47758f9c..62080d2b 100644 --- a/mailserver.env +++ b/mailserver.env @@ -182,10 +182,10 @@ RSPAMD_HFILTER=1 # Default: 6 RSPAMD_HFILTER_HOSTNAME_UNKNOWN_SCORE=6 -# Can be used to enable or disable the neural module. +# Can be used to enable or disable the (still experimental) neural module. # -# - 0 => Disabled -# - **1** => Enabled +# - **0** => Disabled +# - 1 => Enabled RSPAMD_NEURAL=0 # Amavis content filter (used for ClamAV & SpamAssassin) diff --git a/target/scripts/startup/setup.d/security/rspamd.sh b/target/scripts/startup/setup.d/security/rspamd.sh index c8c4788c..92104097 100644 --- a/target/scripts/startup/setup.d/security/rspamd.sh +++ b/target/scripts/startup/setup.d/security/rspamd.sh @@ -286,11 +286,12 @@ function __rspamd__setup_hfilter_group() { # This function handles setup of the neural module (see -# https://www.rspamd.com/doc/modules/neural.html). This module is experimental +# https://www.rspamd.com/doc/modules/neural.html). This module is experimental # but can enhance anti-spam scoring possibly. function __rspamd__setup_neural() { if _env_var_expect_zero_or_one 'RSPAMD_NEURAL' && [[ ${RSPAMD_NEURAL} -eq 1 ]]; then - __rspamd__log 'debug' 'Disabling Neural module' + __rspamd__log 'debug' 'Enabling Neural module' + __rspamd__log 'warn' 'The Neural module is still experimental (in Rspamd)' else __rspamd__log 'debug' 'Neural module is disabled' rm -f "${RSPAMD_LOCAL_D}/neural.conf"