Don't use LDAP for passdb

This commit is contained in:
2023-09-26 10:37:59 -07:00
parent be57ad1b83
commit bedd4cd676
3 changed files with 7 additions and 30 deletions
+6 -4
View File
@@ -188,8 +188,10 @@ in {
dovecot2 = {
enable = true;
enablePAM = false;
enableImap = true;
extraConfig = ''
extraConfig = let
mailUser = config.services.dovecot2.user;
mailUserUid = config.users.users."${mailUser}".uid;
in ''
# Extra Config
${lib.optionalString cfg.debug "auth_debug = yes"}
@@ -204,8 +206,8 @@ in {
}
userdb = {
driver = ldap
args = ${cfg.ldap-conf}
driver = static
args = uid=${toString mailUserUid} home=/tmp/%u
}
service auth {