mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-02 17:14:31 +02:00
Rspamd: add greylisting option & code refactoring (#3206)
This commit is contained in:
parent
9ee33a81b7
commit
806d3efef9
8 changed files with 205 additions and 136 deletions
|
@ -18,6 +18,7 @@ function setup_file() {
|
|||
--env LOG_LEVEL=trace
|
||||
--env MOVE_SPAM_TO_JUNK=1
|
||||
--env RSPAMD_LEARN=1
|
||||
--env RSPAMD_GREYLISTING=1
|
||||
)
|
||||
|
||||
mv "${TEST_TMP_CONFIG}"/rspamd/* "${TEST_TMP_CONFIG}/"
|
||||
|
@ -243,3 +244,11 @@ function teardown_file() { _default_teardown ; }
|
|||
assert_output --partial "${LINE}"
|
||||
done
|
||||
}
|
||||
|
||||
@test 'Check greylisting is enabled' {
|
||||
_run_in_container grep 'enabled = true;' /etc/rspamd/local.d/greylist.conf
|
||||
assert_success
|
||||
_run_in_container rspamadm configdump greylist
|
||||
assert_success
|
||||
assert_output --partial 'enabled = true;'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue