diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-11-29 11:57:21 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-11-29 11:57:21 +0000 |
commit | ac54ca1427d5246a63dbdb9bccb47b8fb124d433 (patch) | |
tree | 96b9c24ee3c38761196b875012b97fe339ea9be3 /pykolab | |
parent | 927aacb8ac646738a640259ccdc7b401e20200c8 (diff) | |
download | pykolab-ac54ca1427d5246a63dbdb9bccb47b8fb124d433.tar.gz |
Substitute the path to the Kolab SMTP Access Policy executable for the correct value (#1396)
Diffstat (limited to 'pykolab')
-rw-r--r-- | pykolab/setup/setup_mta.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py index 058abb3..7889942 100644 --- a/pykolab/setup/setup_mta.py +++ b/pykolab/setup/setup_mta.py @@ -237,6 +237,11 @@ result_attribute = mail postfix_master_settings = { } + if os.path.exists('/usr/lib/postfix/kolab_smtp_access_policy'): + postfix_master_settings['kolab_sap_executable_path'] = '/usr/lib/postfix/kolab_smtp_access_policy' + else: + postfix_master_settings['kolab_sap_executable_path'] = '/usr/libexec/postfix/kolab_smtp_access_policy' + template_file = None if os.path.isfile('/etc/kolab/templates/master.cf.tpl'): |