diff --git a/dovecot/defaults/main.yml b/dovecot/defaults/main.yml index dcf1bde29e567cc6df8312daaab7ef4652af74f5..f65607181db8d1a8c6ce952cd854fd71dbf95886 100644 --- a/dovecot/defaults/main.yml +++ b/dovecot/defaults/main.yml @@ -40,4 +40,5 @@ dovecot_auth_default_realm: '' dovecot_auth_krb5_keytab: '' dovecot_auth_mechanisms: - plain +dovecot_mail_namespaces: [] dovecot_special_mailbox_auto_subscribe: false diff --git a/dovecot/templates/conf.d/10-mail.conf.j2 b/dovecot/templates/conf.d/10-mail.conf.j2 index 52df2b7dba55a7ee7fdb07964632ae19a13e01b6..f74f8b76d1faf76f1613fa40702bca6a5d2ad148 100644 --- a/dovecot/templates/conf.d/10-mail.conf.j2 +++ b/dovecot/templates/conf.d/10-mail.conf.j2 @@ -79,6 +79,14 @@ namespace inbox { # See 15-mailboxes.conf for definitions of special mailboxes. } +{% for namespace in dovecot_mail_namespaces %} +namespace { + {% for key, value in namespace.items() %} + {{ key }} = {{ value }} + {% endfor %} +} +{% endfor %} + # Example shared namespace configuration #namespace { #type = shared