From e0c7cd475b7cd0fe0d619b029cfd5bbf38e5c9ee Mon Sep 17 00:00:00 2001 From: Casper Date: Sun, 11 Jun 2023 22:59:26 +0200 Subject: [PATCH] Don't register _setup_spam_to_junk() when SMTP_ONLY=1 (#3385) --- target/scripts/start-mailserver.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/scripts/start-mailserver.sh b/target/scripts/start-mailserver.sh index 562320d9..a002c6c3 100755 --- a/target/scripts/start-mailserver.sh +++ b/target/scripts/start-mailserver.sh @@ -47,6 +47,7 @@ function _register_functions() { _register_setup_function '_setup_dovecot_sieve' _register_setup_function '_setup_dovecot_dhparam' _register_setup_function '_setup_dovecot_quota' + _register_setup_function '_setup_spam_to_junk' fi case "${ACCOUNT_PROVISIONER}" in @@ -80,7 +81,6 @@ function _register_functions() { _register_setup_function '_setup_policyd_spf' _register_setup_function '_setup_security_stack' - _register_setup_function '_setup_spam_to_junk' _register_setup_function '_setup_rspamd' _register_setup_function '_setup_ssl' @@ -95,7 +95,7 @@ function _register_functions() { # needs to come after _setup_postfix_early _register_setup_function '_setup_spoof_protection' -_register_setup_function '_setup_getmail' + _register_setup_function '_setup_getmail' if [[ ${ENABLE_SRS} -eq 1 ]]; then _register_setup_function '_setup_SRS'