You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 26, 2024. It is now read-only.
- LDAP-MAILCOW_SOGO_LDAP_FILTER=objectClass='user' AND objectCategory='person' AND memberOf:1.2.840.113556.1.4.1941:='CN=Group,CN=Users,DC=example DC=local'
- LDAP-MAILCOW_SOGO_LDAP_FILTER=objectClass='user' AND objectCategory='person' AND memberOf:1.2.840.113556.1.4.1941:='CN=Group,CN=Users,DC=example DC=local'
43
+
```
44
44
45
45
3. Configure environmental variables:
46
46
47
-
*`LDAP-MAILCOW_LDAP_URI` - LDAP (e.g., Active Directory) URI (must be reachable from within the container). The URIs are in syntax `protocol://host:port`. For example `ldap://localhost` or `ldaps://secure.domain.org`
48
-
* `LDAP-MAILCOW_LDAP_BASE_DN` - base DN where user accounts can be found
49
-
* `LDAP-MAILCOW_LDAP_BIND_DN` - bind DN of a special LDAP account that will be used to browse for users
50
-
* `LDAP-MAILCOW_LDAP_BIND_DN_PASSWORD` - password for bind DN account
51
-
* `LDAP-MAILCOW_API_HOST` - mailcow API url. Make sure it's enabled and accessible from within the container for both reads and writes
52
-
* `LDAP-MAILCOW_API_KEY` - mailcow API key (read/write)
53
-
* `LDAP-MAILCOW_SYNC_INTERVAL` - interval in seconds between LDAP synchronizations
54
-
* **Optional** LDAP filters (see example above). SOGo uses special syntax, so you either have to **specify both or none**:
55
-
* `LDAP-MAILCOW_LDAP_FILTER` - LDAP filter to apply, defaults to `(&(objectClass=user)(objectCategory=person))`
56
-
* `LDAP-MAILCOW_SOGO_LDAP_FILTER` - LDAP filter to apply for SOGo ([special syntax](https://sogo.nu/files/docs/SOGoInstallationGuide.html#_authentication_using_ldap)), defaults to `objectClass='user' AND objectCategory='person'`
47
+
-`LDAP-MAILCOW_LDAP_URI` - LDAP (e.g., Active Directory) URI (must be reachable from within the container). The URIs are in syntax `protocol://host:port`. For example `ldap://localhost` or `ldaps://secure.domain.org`
48
+
-`LDAP-MAILCOW_LDAP_BASE_DN`- base DN where user accounts can be found
49
+
-`LDAP-MAILCOW_LDAP_BIND_DN`- bind DN of a special LDAP account that will be used to browse for users
50
+
-`LDAP-MAILCOW_LDAP_BIND_DN_PASSWORD`- password for bind DN account
51
+
-`LDAP-MAILCOW_API_HOST`- mailcow API url. Make sure it's enabled and accessible from within the container for both reads and writes
52
+
-`LDAP-MAILCOW_API_KEY`- mailcow API key (read/write)
53
+
-`LDAP-MAILCOW_SYNC_INTERVAL`- interval in seconds between LDAP synchronizations
54
+
- **Optional** LDAP filters (see example above). SOGo uses special syntax, so you either have to **specify both or none**:
55
+
-`LDAP-MAILCOW_LDAP_FILTER`- LDAP filter to apply, defaults to `(&(objectClass=user)(objectCategory=person))`
56
+
-`LDAP-MAILCOW_SOGO_LDAP_FILTER`- LDAP filter to apply for SOGo ([special syntax](https://sogo.nu/files/docs/SOGoInstallationGuide.html#_authentication_using_ldap)), defaults to `objectClass='user' AND objectCategory='person'`
57
57
58
58
4. Start additional container: `docker-compose up -d ldap-mailcow`
59
59
5. Check logs `docker-compose logs ldap-mailcow`
@@ -63,8 +63,8 @@ A python script periodically checks and creates new LDAP accounts and deactivate
63
63
64
64
Container internally uses the following configuration templates:
65
65
66
-
* SOGo: `/templates/sogo/plist_ldap`
67
-
* dovecot: `/templates/dovecot/ldap/passdb.conf`
66
+
-SOGo: `/templates/sogo/plist_ldap`
67
+
-dovecot: `/templates/dovecot/ldap/passdb.conf`
68
68
69
69
These files have been tested against Active Directory running on Windows Server 2019 domain controller. If necessary, you can edit and remount them through docker volumes. Some documentation on these files can be found here: [dovecot](https://doc.dovecot.org/configuration_manual/authentication/ldap/), [SOGo](https://sogo.nu/files/docs/SOGoInstallationGuide.html#_authentication_using_ldap)
70
70
@@ -89,11 +89,3 @@ As a side-effect, It will also allow logging into mailcow UI using mailcow app p
89
89
### Two-way sync
90
90
91
91
Users from your LDAP directory will be added (and deactivated if disabled/not found) to your mailcow database. Not vice-versa, and this is by design.
92
-
93
-
## Customizations and Integration support
94
-
95
-
External authentication (identity federation) is an enterprise feature [for mailcow](https://github.com/mailcow/mailcow-dockerized/issues/2316#issuecomment-491212921). That’s why I developed an external solution, and it is unlikely that it’ll be ever directly integrated into mailcow.
96
-
97
-
I’ve created this tool because I needed it for my regular work. You are free to use it for commercial needs. Please understand that I can work on issues only if they fall within the scope of my current work interests or if I’ll have some available free time (never happened for many years). I’ll do my best to review submitted PRs ASAP, though.
98
-
99
-
**You can always [contact me](mailto:[email protected]) to help you with the integration or for custom modifications on a paid basis. My current hourly rate (ActivityWatch tracked) is 100,-€ with 3h minimum commitment.**
0 commit comments