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 GitHub
parent 14e42cca63
commit b6c00c9e02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -349,7 +349,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