fix: do not duplicate sasl configuration entries on restart

Fixing the issue when container will not restart due to sasl config file error
This commit is contained in:
Dmitry Sakun 2023-04-06 00:17:50 +02:00 committed by Boky
parent 9235ee0dc1
commit 8b6a6acfae

View file

@ -350,7 +350,7 @@ postfix_setup_smtpd_sasl_auth() {
do_postconf -e "broken_sasl_auth_clients=yes"
[ ! -d /etc/postfix/sasl ] && mkdir /etc/postfix/sasl
cat >> /etc/postfix/sasl/smtpd.conf <<EOF
cat > /etc/postfix/sasl/smtpd.conf <<EOF
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM