From 98fa66b5ad13c8f203fcfe40d42240417951f218 Mon Sep 17 00:00:00 2001 From: Georg Date: Mon, 13 Sep 2021 09:40:35 +0200 Subject: Init MC update + Dovecot/SOGo LDAP configuration Signed-off-by: Georg --- mailcow/data/conf/dovecot/extra.conf | 5 ++++ mailcow/data/conf/dovecot/ldap/passdb.conf | 9 ++++++ mailcow/data/conf/sogo/plist_ldap | 44 ++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 mailcow/data/conf/dovecot/extra.conf create mode 100644 mailcow/data/conf/dovecot/ldap/passdb.conf create mode 100644 mailcow/data/conf/sogo/plist_ldap (limited to 'mailcow/data/conf') diff --git a/mailcow/data/conf/dovecot/extra.conf b/mailcow/data/conf/dovecot/extra.conf new file mode 100644 index 0000000..2ec91d8 --- /dev/null +++ b/mailcow/data/conf/dovecot/extra.conf @@ -0,0 +1,5 @@ +passdb { + args = /etc/dovecot/ldap/passdb.conf + driver = ldap +} + diff --git a/mailcow/data/conf/dovecot/ldap/passdb.conf b/mailcow/data/conf/dovecot/ldap/passdb.conf new file mode 100644 index 0000000..28feedd --- /dev/null +++ b/mailcow/data/conf/dovecot/ldap/passdb.conf @@ -0,0 +1,9 @@ +uris = ldaps://orpheus.syscid.com +ldap_version = 3 +base = OU=syscid-users,DC=syscid,DC=com +auth_bind = yes +dn = $BINDDN +dnpass = $BINDSEC +pass_attrs = userPassword=password +pass_filter = (&(memberof=cn=syscid_email_mailcow,ou=syscid-groups,dc=syscid,dc=com)(|(uid=%n)(mail=%u))) + diff --git a/mailcow/data/conf/sogo/plist_ldap b/mailcow/data/conf/sogo/plist_ldap new file mode 100644 index 0000000..dfa203e --- /dev/null +++ b/mailcow/data/conf/sogo/plist_ldap @@ -0,0 +1,44 @@ + + + type + ldap + id + ${line}_ldap + + CNFieldName + cn + IDFieldName + uid + UIDFieldName + uid + + baseDN + OU=syscid-users,DC=syscid,DC=com + + bindDN + $BINDDN + bindPassword + $BINDSEC + bindFields + + uid + mail + + + bindAsCurrentUser + YES + + hostname + ldaps://orpheus.syscid.com + canAuthenticate + YES + + isAddressBook + NO + displayName + LibertaCasa + + scope + SUB + + -- cgit v1.2.3