summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-12-31 01:25:25 +0000
committerJonas Smedegaard <dr@jones.dk>2002-12-31 01:25:25 +0000
commitbb4ae88740a38cd2c791a768c39ce5a09dd60982 (patch)
tree1ea32391bb8fb82346038f28a24cabdafb39f8bd /postfix
parentf14484dd9e9fa485f049589b9e235f06b6ee29a2 (diff)
Reverse logic of tlsmgr check.
Use tabs in tlsmgr line.
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/anti-uce.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/postfix/anti-uce.sh b/postfix/anti-uce.sh
index 7be4edc..d7fab85 100755
--- a/postfix/anti-uce.sh
+++ b/postfix/anti-uce.sh
@@ -34,9 +34,8 @@ if dpkg -L libsasl-modules-plain &> /dev/null && [ -f /etc/ssl/certs/postfix.pem
-e "s/^#\?\(\(smtps\|587\)$sp\+inet\($sp\+[n-]\)\{2\}$sp\+\)[n-]/\1n/" \
-e "s/^#\(tlsmgr$sp\)/\1/" \
> $confdir/master.cf
- if cat $confdir/master.cf | egrep "^tlsmgr$sp" > /dev/null; then
- echo 'tlsmgr fifo - - - 300 1 tlsmgr' >> $confdir/master.cf
- fi
+ cat $confdir/master.cf | egrep "^tlsmgr$sp" > /dev/null || \
+ echo 'tlsmgr fifo - - - 300 1 tlsmgr' >> $confdir/master.cf
postconf -e 'smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem'
if [ -f /etc/ssl/private/postfix.pem ]; then
postconf -e 'smtpd_tls_key_file = /etc/ssl/private/postfix.pem'