summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2003-01-04 02:46:14 +0000
committerJonas Smedegaard <dr@jones.dk>2003-01-04 02:46:14 +0000
commite2e3c09a8e006d09b29322007a9cac1124273597 (patch)
treeb09195983dc70241ed36f69dc432bec7dd6d4185 /postfix
parent7dcb7cd97ee78535d19d83382ed3a7baf30e3cd2 (diff)
Check for files, not dpkg output, and check for postfix-tls specific file as well.
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/postfix.sh5
1 files changed, 3 insertions, 2 deletions
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 <dr@jones.dk>
#
-# $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