summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-30 13:32:35 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-04 15:34:55 +0000
commit9e4126d0d79c9f37aace2e28b24c8321e95a5ca5 (patch)
treec865de0fa5795b0ff505f11d6d78a5f69a8d2ffe
parent8338c7b15401156cd56a6e6f345bc3da2ac731d9 (diff)
downloadpykolab-9e4126d0d79c9f37aace2e28b24c8321e95a5ca5.tar.gz
Correct whether or not to set the TLS certificates on RPM-based distributions
-rw-r--r--pykolab/setup/setup_mta.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index 8dd338d..5c66f19 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -209,6 +209,8 @@ result_attribute = mail
if os.path.isfile('/etc/pki/tls/certs/make-dummy-cert') and not os.path.isfile('/etc/pki/tls/private/localhost.pem'):
subprocess.call(['/etc/pki/tls/certs/make-dummy-cert', '/etc/pki/tls/private/localhost.pem'])
+
+ if os.path.isfile('/etc/pki/tls/private/localhost.pem'):
postfix_main_settings['smtpd_tls_cert_file'] = "/etc/pki/tls/private/localhost.pem"
postfix_main_settings['smtpd_tls_key_file'] = "/etc/pki/tls/private/localhost.pem"