summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/setup_imap.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/setup/setup_imap.py')
-rw-r--r--pykolab/setup/setup_imap.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pykolab/setup/setup_imap.py b/pykolab/setup/setup_imap.py
index e3b5563..5cf60a9 100644
--- a/pykolab/setup/setup_imap.py
+++ b/pykolab/setup/setup_imap.py
@@ -167,6 +167,10 @@ def _execute(*args, **kw):
def get_imap_settings():
return {
+ "imap_config_dir": get_cyrus_config_base(),
+ "imap_spool_dir": get_cyrus_spool_base(),
+ "imap_sieve_dir": get_cyrus_sieve_base(),
+ "imap_socket_dir": get_cyrus_socket_base(),
"ldap_servers": conf.get('ldap', 'ldap_uri'),
"ldap_host": get_host_from_url(conf.get('ldap', 'ldap_uri')),
"ldap_base": conf.get('ldap', 'base_dn'),
@@ -198,7 +202,7 @@ def configure_cyrus_imapd(imapd_settings):
for template_basename, output_file, settings in [
('imapd.conf.tpl', '/etc/imapd.conf', [imapd_settings]),
- ('cyrus.conf.tpl', '/etc/cyrus.conf', [{}])
+ ('cyrus.conf.tpl', '/etc/cyrus.conf', [imapd_settings])
]:
template_file = get_template_path(template_basename)