summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-29 13:11:54 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-29 13:11:54 +0000
commitb203f164504a9901242260ad36fb08ec951c2dec (patch)
tree1ad8a9783ab9e3d99bfec901d45ea081793b8e34
parent136307d7ceafab24f317ebe4b2721176c998bae7 (diff)
downloadpykolab-b203f164504a9901242260ad36fb08ec951c2dec.tar.gz
Correct indentation and correct smtp sasl configuration
-rw-r--r--pykolab/setup/setup_mta.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index b862838..9f359b0 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -268,6 +268,12 @@ result_attribute = mail
log.error(_("Could not write out Postfix configuration file /etc/postfix/master.cf"))
return
+ if os.path.isdir('/etc/postfix/sasl/'):
+ fp = open('/etc/postfix/sasl/smtpd.conf', 'w')
+ fp.write("pwcheck_method: saslauthd\n")
+ fp.write("mech_list: plain login\n")
+ fp.close()
+
amavisd_settings = {
'ldap_server': 'localhost',
'ldap_bind_dn': conf.get('ldap', 'service_bind_dn'),