summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2019-05-28 15:32:32 +0200
committerAleksander Machniak <machniak@kolabsys.com>2019-05-28 15:32:32 +0200
commit36c3ab0dda8d05780a5edf5fb4a6a099953b6bde (patch)
treedf1e4c697926aacd140158b1c8399ccce0ce3a1a /pykolab
parent5a60e0c9e6576a4f9911c1eba87903bb2522831e (diff)
downloadpykolab-36c3ab0dda8d05780a5edf5fb4a6a099953b6bde.tar.gz
Fix Postfix TLS setup on Debian 9 (Bifrost#T163064)
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_mta.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index 17e79bc..98ce6b6 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -277,6 +277,9 @@ result_format = "shared+%%s"
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"
+ elif os.path.isfile('/etc/ssl/private/cyrus-imapd.pem'): # Debian 9
+ postfix_main_settings['smtpd_tls_cert_file'] = "/etc/ssl/private/cyrus-imapd.pem"
+ postfix_main_settings['smtpd_tls_key_file'] = "/etc/ssl/private/cyrus-imapd.pem"
if not os.path.isfile('/etc/postfix/main.cf'):
if os.path.isfile('/usr/share/postfix/main.cf.debian'):