rspamd: disable checks for authenticated users (#3440)

Co-authored-by: Casper <casperklein@users.noreply.github.com>
Co-authored-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
Georg Lauterbach 2023-08-08 10:43:21 +02:00 committed by GitHub
parent b001f5a140
commit f28fce9cc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 77 additions and 8 deletions

View file

@ -24,6 +24,7 @@ function setup_file() {
--env LOG_LEVEL=trace
--env MOVE_SPAM_TO_JUNK=0
--env RSPAMD_LEARN=0
--env RSPAMD_CHECK_AUTHENTICATED=1
--env RSPAMD_GREYLISTING=0
--env RSPAMD_HFILTER=0
)
@ -85,3 +86,12 @@ function teardown_file() { _default_teardown ; }
_run_in_container_bash '[[ -f /etc/rspamd/local.d/hfilter_group.conf ]]'
assert_failure
}
@test 'checks on authenticated users are enabled' {
local MODULE_FILE='/etc/rspamd/local.d/settings.conf'
_run_in_container_bash "[[ -f ${MODULE_FILE} ]]"
assert_success
_run_in_container grep -E 'authenticated \{' "${MODULE_FILE}"
assert_failure
}