update mail to nixos mailserver 25.11

This commit is contained in:
goeranh 2026-02-13 18:33:44 +01:00
parent afa380060b
commit 7f0c0483c4
No known key found for this signature in database
2 changed files with 7 additions and 4 deletions

View file

@ -88,7 +88,8 @@ in
ldap = {
enable = true;
bind = {
dn = "cn=dovecot,ou=users,DC=test,DC=htw,DC=stura-dresden,DC=de";
# dn = "cn=dovecot,ou=users,DC=test,DC=htw,DC=stura-dresden,DC=de";
dn = "cn=ldapuser,ou=users,dc=ldap,dc=goauthentik,dc=io";
passwordFile = "/var/lib/dovecot_ldap_passwd";
};
dovecot = {
@ -101,7 +102,8 @@ in
mailAttribute = "mail";
uidAttribute = "cn";
};
searchBase = "DC=test,DC=htw,DC=stura-dresden,DC=de";
#searchBase = "DC=test,DC=htw,DC=stura-dresden,DC=de";
searchBase = "DC=ldap,DC=goauthentik,DC=io";
uris = [
"ldap://auth.test.htw.stura-dresden.de:3389"
];
@ -136,6 +138,7 @@ in
maxConnectionsPerUser = 10;
messageSizeLimit = 10 * 1000 * 1024; # 10 MiB
stateVersion = 3;
};
# services.dovecot2.mailLocation = lib.mkForce "maildir:/var/vmail/%n";