fix: DKIM key generation broken when Rspamd & OpenDKIM are enabled (#3535)

Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Lucas Bartholemy 2023-09-13 10:42:52 +02:00 committed by GitHub
parent 8329fa19cc
commit 86edaf9a8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,9 +4,13 @@
source /usr/local/bin/helpers/index.sh source /usr/local/bin/helpers/index.sh
if [[ -f /etc/dms-settings ]] && [[ $(_get_dms_env_value 'ENABLE_RSPAMD') -eq 1 ]]; then if [[ -f /etc/dms-settings ]] && [[ $(_get_dms_env_value 'ENABLE_RSPAMD') -eq 1 ]]; then
if [[ $(_get_dms_env_value 'ENABLE_OPENDKIM') -eq 1 ]]; then
log 'error' "You enabled Rspamd and OpenDKIM - OpenDKIM will be implicitly used for DKIM keys"
else
/usr/local/bin/rspamd-dkim "${@}" /usr/local/bin/rspamd-dkim "${@}"
exit exit
fi fi
fi
KEYSIZE=2048 KEYSIZE=2048
SELECTOR=mail SELECTOR=mail