From f4529179110ab3851452a2076ea97a4492369c4a Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 12 Jul 2007 18:58:02 +0000 Subject: Drop pftls flag (relevant only for pre-2.2 postfix versions). --- postfix/postfix.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'postfix') diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 5fcd85b..71f8982 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,7 +3,7 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002-2007 Jonas Smedegaard # -# $Id: postfix.sh,v 1.46 2007-07-12 18:55:28 jonas Exp $ +# $Id: postfix.sh,v 1.47 2007-07-12 18:58:02 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -24,14 +24,6 @@ if ! $postconf -d mail_version | grep -q '= 2\.2'; then echo "ERROR: Bad postfix version - this script is known to work only for postfix 2.2" exit 1 fi -pftls= -if [ -x /usr/lib/postfix/tlsmgr ]; then - pftls=1 -else - echo "WARNING: Not enabling encryption: TLS-patched postfix required." - echo " (on Debian: install the package postfix-tls)" -fi -# FIXME: We really want to check for at least 2.1.1 but that's tricky... postgrey= if [ -x /usr/sbin/postgrey ]; then # FIXME: Use this somehow, and only warn below @@ -121,7 +113,7 @@ $postconf -e "unverified_sender_reject_code = 550" # TLS breaks postfix if no SASL modules available (and doesn't make sense either) # (change the test if using some other modules and avoid the plain ones) -if [ -n "$pftls" ] && [ -n "$sasl2" ] && [ -f /etc/ssl/certs/postfix.pem ]; then +if [ -n "$sasl2" ] && [ -f /etc/ssl/certs/postfix.pem ]; then mkdir -p "$sasldir" echo 'mech_list: plain login' > "$sasldir/smtpd.conf" echo 'minimum_layer: 0' >> "$sasldir/smtpd.conf" -- cgit v1.2.3