added ldap config to mailman

This commit is contained in:
Rouven Seifert 2023-04-04 14:25:21 +02:00
parent d1fb1b3de1
commit 12f1d690ba
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -1,5 +1,9 @@
{ config, ... }:
{
sops.secrets.mailman_ldap_search = {
key = "portunus_search";
owner = config.services.mailman.webUser;
};
services.mailman = {
enable = true;
serve.enable = true;
@ -7,5 +11,19 @@
hyperkitty.enable = true;
enablePostfix = true;
siteOwner = "root@${config.fsr.domain}";
ldap = {
enable = true;
serverUri = "ldap://localhost";
bindDn = "uid=search, ou=users, dc=ifsr, dc=de";
bindPasswordFile = config.sops.secrets.mailman_ldap_search.path;
userSearch = {
ou = "ou=users, dc=ifsr, dc=de";
query = "(&(objectClass=posixAccount)(uid=%(user)s))";
};
groupSearch = {
ou = "ou=groups, dc=ifsr, dc=de";
query = "(objectClass=groupOfNames)";
};
};
};
}