This commit is contained in:
commit
b34dc761f2
|
@ -183,10 +183,10 @@ RSPAMD_HFILTER=1
|
||||||
# Default: 6
|
# Default: 6
|
||||||
RSPAMD_HFILTER_HOSTNAME_UNKNOWN_SCORE=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
|
# - **0** => Disabled
|
||||||
# - **1** => Enabled
|
# - 1 => Enabled
|
||||||
RSPAMD_NEURAL=0
|
RSPAMD_NEURAL=0
|
||||||
|
|
||||||
# Amavis content filter (used for ClamAV & SpamAssassin)
|
# Amavis content filter (used for ClamAV & SpamAssassin)
|
||||||
|
|
|
@ -290,7 +290,8 @@ function __rspamd__setup_hfilter_group() {
|
||||||
# but can enhance anti-spam scoring possibly.
|
# but can enhance anti-spam scoring possibly.
|
||||||
function __rspamd__setup_neural() {
|
function __rspamd__setup_neural() {
|
||||||
if _env_var_expect_zero_or_one 'RSPAMD_NEURAL' && [[ ${RSPAMD_NEURAL} -eq 1 ]]; then
|
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) and hence not tested in DMS'
|
||||||
else
|
else
|
||||||
__rspamd__log 'debug' 'Neural module is disabled'
|
__rspamd__log 'debug' 'Neural module is disabled'
|
||||||
rm -f "${RSPAMD_LOCAL_D}/neural.conf"
|
rm -f "${RSPAMD_LOCAL_D}/neural.conf"
|
||||||
|
|
Loading…
Reference in New Issue