From 36948c104ad24baed65fd219c1608ff33300f039 Mon Sep 17 00:00:00 2001 From: Abylay Ospan Date: Tue, 27 Sep 2016 06:41:05 +0300 Subject: [PATCH] force 'smtpd_use_tls=no' if no keys specified otherwise postfix return '250-STARTTLS' but then failed because no keys available. This can cause Wordpress failed to send emails because 'wp mail smtp' force to use TLS if server return '250-STARTTLS' Signed-off-by: Abylay Ospan --- assets/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/install.sh b/assets/install.sh index 0b2aaff..6605496 100755 --- a/assets/install.sh +++ b/assets/install.sh @@ -66,6 +66,8 @@ if [[ -n "$(find /etc/postfix/certs -iname *.crt)" && -n "$(find /etc/postfix/ce postconf -P "submission/inet/smtpd_sasl_auth_enable=yes" postconf -P "submission/inet/milter_macro_daemon_name=ORIGINATING" postconf -P "submission/inet/smtpd_recipient_restrictions=permit_sasl_authenticated,reject_unauth_destination" +else + postconf -e smtpd_use_tls=no fi ############# @@ -127,4 +129,4 @@ cat >> /etc/opendkim/SigningTable <