summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-02-28 19:36:09 +0000
committerJonas Smedegaard <dr@jones.dk>2008-02-28 19:36:09 +0000
commitd387cf41c6fec25714670d5bd3a8c6badc607636 (patch)
tree8ad5f3d6c9d23cd091108a8bbb778e4dbbd747bb /postfix
parentf84889d6f84c1a15e914f40cbb8298b81742ccc3 (diff)
Use ${queue_directory} variable instead of hardcoded value.
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/postfix.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh
index 61f0b67..5f84cb6 100755
--- a/postfix/postfix.sh
+++ b/postfix/postfix.sh
@@ -3,7 +3,7 @@
# /etc/local-COMMON/postfix/postfix.sh
# Copyright 2002-2007 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: postfix.sh,v 1.66 2008-02-28 19:02:08 jonas Exp $
+# $Id: postfix.sh,v 1.67 2008-02-28 19:36:09 jonas Exp $
#
# Auto-tweak plain installed postfix Debian package
#
@@ -198,9 +198,9 @@ if [ -n "$sasl2" ] && [ -n "$sslcert" ]; then
$postconf -c "$tempdir" -e 'smtpd_tls_CApath = /etc/ssl/certs'
$postconf -c "$tempdir" -e 'lmtp_tls_CApath = /etc/ssl/certs'
$postconf -c "$tempdir" -e 'smtpd_tls_key_file = /etc/ssl/private/postfix.pem'
- $postconf -c "$tempdir" -e 'smtpd_tls_session_cache_database = btree:/var/spool/postfix/smtpd_scache'
+ $postconf -c "$tempdir" -e 'smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache'
$postconf -c "$tempdir" -e 'smtpd_tls_session_cache_timeout = 3600s'
- $postconf -c "$tempdir" -e 'tls_random_exchange_name = /var/spool/postfix/prng_exch'
+ $postconf -c "$tempdir" -e 'tls_random_exchange_name = ${queue_directory}/prng_exch'
$postconf -c "$tempdir" -e 'smtpd_tls_auth_only = yes'
$postconf -c "$tempdir" -e 'smtpd_sasl_auth_enable = no' # SASL is enabled explicitly with TLS transport
$postconf -c "$tempdir" -e 'smtpd_sasl_security_options = noanonymous'
@@ -224,7 +224,7 @@ if [ -n "$sasl2" ] && [ -n "$sslcert" ]; then
$postconf -c "$tempdir" -e 'smtp_use_tls = yes'
$postconf -c "$tempdir" -e 'smtp_tls_CApath = /etc/ssl/certs'
$postconf -c "$tempdir" -e 'smtp_tls_note_starttls_offer = no' # Enable to collect info for smtp_tls_per_site option
- $postconf -c "$tempdir" -e 'smtp_tls_session_cache_database = btree:/var/spool/postfix/smtp_scache'
+ $postconf -c "$tempdir" -e 'smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache'
# Accepting client certificates breaks SMTP AUTH on OutLook Express on Mac (Classic)
$postconf -c "$tempdir" -e 'smtpd_tls_ask_ccert = no'
# Force using TLS for peers