Don't enable smtputf8 when running on alpine on container restart (#224)

This commit is contained in:
Nico Weichbrodt 2025-01-30 19:45:05 +01:00 committed by GitHub
parent 0286619ef2
commit 0a8e84b855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -258,7 +258,7 @@ postfix_disable_utf8() {
if [[ -f /etc/alpine-release ]] && [[ "${smtputf8_enable}" == "yes" ]]; then
debug "Running on Alpine. Setting ${emphasis}smtputf8_enable${reset}=${emphasis}no${reset}, as Alpine does not have proper libraries to handle UTF-8"
do_postconf -e smtputf8_enable=no
elif [[ "${smtputf8_enable}" == "no" ]]; then
elif [[ ! -f /etc/alpine-release ]] && [[ "${smtputf8_enable}" == "no" ]]; then
debug "Running on non-Alpine system. Setting ${emphasis}smtputf8_enable${reset}=${emphasis}yes${reset}."
do_postconf -e smtputf8_enable=yes
fi