Don't register _setup_spam_to_junk() when SMTP_ONLY=1 (#3385)

This commit is contained in:
Casper 2023-06-11 22:59:26 +02:00 committed by GitHub
parent efed9d8012
commit e0c7cd475b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,7 @@ function _register_functions() {
_register_setup_function '_setup_dovecot_sieve' _register_setup_function '_setup_dovecot_sieve'
_register_setup_function '_setup_dovecot_dhparam' _register_setup_function '_setup_dovecot_dhparam'
_register_setup_function '_setup_dovecot_quota' _register_setup_function '_setup_dovecot_quota'
_register_setup_function '_setup_spam_to_junk'
fi fi
case "${ACCOUNT_PROVISIONER}" in case "${ACCOUNT_PROVISIONER}" in
@ -80,7 +81,6 @@ function _register_functions() {
_register_setup_function '_setup_policyd_spf' _register_setup_function '_setup_policyd_spf'
_register_setup_function '_setup_security_stack' _register_setup_function '_setup_security_stack'
_register_setup_function '_setup_spam_to_junk'
_register_setup_function '_setup_rspamd' _register_setup_function '_setup_rspamd'
_register_setup_function '_setup_ssl' _register_setup_function '_setup_ssl'
@ -95,7 +95,7 @@ function _register_functions() {
# needs to come after _setup_postfix_early # needs to come after _setup_postfix_early
_register_setup_function '_setup_spoof_protection' _register_setup_function '_setup_spoof_protection'
_register_setup_function '_setup_getmail' _register_setup_function '_setup_getmail'
if [[ ${ENABLE_SRS} -eq 1 ]]; then if [[ ${ENABLE_SRS} -eq 1 ]]; then
_register_setup_function '_setup_SRS' _register_setup_function '_setup_SRS'