summaryrefslogtreecommitdiff
path: root/hosted-kolab/11-add-domain-sections.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-kolab/11-add-domain-sections.sh')
-rwxr-xr-xhosted-kolab/11-add-domain-sections.sh202
1 files changed, 202 insertions, 0 deletions
diff --git a/hosted-kolab/11-add-domain-sections.sh b/hosted-kolab/11-add-domain-sections.sh
new file mode 100755
index 0000000..8692036
--- /dev/null
+++ b/hosted-kolab/11-add-domain-sections.sh
@@ -0,0 +1,202 @@
+cat >>/etc/kolab/kolab.conf<<EOF
+[demo.kolab.org]
+base_dn = dc=demo,dc=kolab,dc=org
+user_base_dn = ou=People,%(base_dn)s
+personal_user_base_dn = ou=People,%(base_dn)s
+professional_user_base_dn = ou=People,%(base_dn)s
+primary_mail = %(uid)s@(domain)s
+autocreate_folders = {
+ 'Calendar': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "event.default",
+ '/shared/vendor/kolab/folder-type': "event",
+ },
+ },
+ 'Configuration': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "configuration.default",
+ '/shared/vendor/kolab/folder-type': "configuration.default",
+ },
+ },
+ 'Drafts': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.drafts",
+ },
+ },
+ 'Contacts': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "contact.default",
+ '/shared/vendor/kolab/folder-type': "contact",
+ },
+ },
+ 'Journal': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "journal.default",
+ '/shared/vendor/kolab/folder-type': "journal",
+ },
+ },
+ 'Notes': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': 'note.default',
+ '/shared/vendor/kolab/folder-type': 'note',
+ },
+ },
+ 'Sent': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.sentitems",
+ },
+ },
+ 'Spam': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.junkemail",
+ },
+ },
+ 'Tasks': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "task.default",
+ '/shared/vendor/kolab/folder-type': "task",
+ },
+ },
+ 'Trash': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.trash",
+ },
+ },
+ }
+default_quota = 1048576
+
+[kolabsys.com]
+primary_mail = %(uid)s@(domain)s
+autocreate_folders = {
+ 'Calendar': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "event.default",
+ '/shared/vendor/kolab/folder-type': "event",
+ },
+ },
+ 'Configuration': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "configuration.default",
+ '/shared/vendor/kolab/folder-type': "configuration.default",
+ },
+ },
+ 'Drafts': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.drafts",
+ },
+ },
+ 'Contacts': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "contact.default",
+ '/shared/vendor/kolab/folder-type': "contact",
+ },
+ },
+ 'Journal': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "journal.default",
+ '/shared/vendor/kolab/folder-type': "journal",
+ },
+ },
+ 'Notes': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': 'note.default',
+ '/shared/vendor/kolab/folder-type': 'note',
+ },
+ },
+ 'Sent': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.sentitems",
+ },
+ },
+ 'Spam': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.junkemail",
+ },
+ },
+ 'Tasks': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "task.default",
+ '/shared/vendor/kolab/folder-type': "task",
+ },
+ },
+ 'Trash': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.trash",
+ },
+ },
+ }
+secondary_mail = {
+ 0: {
+ "{0}.{1}@{2}": "format('%(givenname)s'[0:1].capitalize(), '%(surname)s', '%(domain)s')"
+ },
+ 1: {
+ "{0}@{1}": "format('%(givenname)s.%(surname)s', '%(domain)s')"
+ }
+ }
+default_quota = 1048576
+
+[kolab.org]
+base_dn = dc=kolab,dc=org
+user_base_dn = ou=People,%(base_dn)s
+primary_mail = %(givenname)s.%(surname)s@%(domain)s
+autocreate_folders = {
+ 'Calendar': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "event.default",
+ '/shared/vendor/kolab/folder-type': "event",
+ },
+ },
+ 'Configuration': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "configuration.default",
+ '/shared/vendor/kolab/folder-type': "configuration.default",
+ },
+ },
+ 'Drafts': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.drafts",
+ },
+ },
+ 'Contacts': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "contact.default",
+ '/shared/vendor/kolab/folder-type': "contact",
+ },
+ },
+ 'Journal': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "journal.default",
+ '/shared/vendor/kolab/folder-type': "journal",
+ },
+ },
+ 'Notes': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': 'note.default',
+ '/shared/vendor/kolab/folder-type': 'note',
+ },
+ },
+ 'Sent': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.sentitems",
+ },
+ },
+ 'Spam': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.junkemail",
+ },
+ },
+ 'Tasks': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "task.default",
+ '/shared/vendor/kolab/folder-type': "task",
+ },
+ },
+ 'Trash': {
+ 'annotations': {
+ '/private/vendor/kolab/folder-type': "mail.trash",
+ },
+ },
+ }
+default_quota = 1048576
+EOF
+