From 41b52ec0704409bb127f6636b708dbbe224004fc Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 30 Sep 2023 12:47:05 -0700 Subject: [PATCH] Two userdbs? --- dovecot.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dovecot.nix b/dovecot.nix index fa83bb8..4483e6f 100644 --- a/dovecot.nix +++ b/dovecot.nix @@ -360,8 +360,11 @@ in { args = uid=${ toString mailUserUid } home=${cfg.state-directory}/mail/%u - user_attrs = =user=%{ldap:cn} - user_filter = (&(objectClass=organizationalPerson)(cn=%n)) + } + + userdb { + driver = ldap + args = ${cfg.ldap-conf} } service imap {