From e2e3c09a8e006d09b29322007a9cac1124273597 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 4 Jan 2003 02:46:14 +0000 Subject: Check for files, not dpkg output, and check for postfix-tls specific file as well. --- postfix/postfix.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'postfix/postfix.sh') diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 8aec78f..874038c 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,13 +3,14 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002 Jonas Smedegaard # -# $Id: postfix.sh,v 1.6 2003-01-04 00:10:04 jonas Exp $ +# $Id: postfix.sh,v 1.7 2003-01-04 02:46:14 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # # TODO: Check for postfix 2.0 and include improve RBL logic with new # options reject_rhsbl_sender and default_rbl_reply # +# TODO: Figure out a way to use chroot jail for TLS stuff. set -e @@ -33,7 +34,7 @@ fi # 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 dpkg -L libsasl-modules-plain &> /dev/null && [ -f /etc/ssl/certs/postfix.pem ]; then +if [ -f /usr/lib/postfix/tlsmgr -a -f /usr/lib/sasl/libplain.so -a -f /etc/ssl/certs/postfix.pem ]; then mkdir -p $confdir/sasl echo 'pwcheck_method: pam' >$confdir/sasl/smtpd.conf echo 'auto_transition: false' >>$confdir/sasl/smtpd.conf -- cgit v1.2.3