diff --git a/mail-server.nix b/mail-server.nix index 3da5476..db2f5db 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -245,6 +245,7 @@ in { "auth_bind = yes" "auth_bind_userdn = cn=%u,${cfg.ldap.member-ou},${cfg.ldap.base}" "base = ${cfg.ldap.base}" + "user_attrs = =user=%{ldap:cn}" ]); target-file = "/run/dovecot-secret/ldap.conf"; }; diff --git a/postfix.nix b/postfix.nix index fb62478..f4bd48f 100644 --- a/postfix.nix +++ b/postfix.nix @@ -200,8 +200,6 @@ in { auth_mechanisms = login plain - user_attrs = =user=%{ldap:cn} - passdb { driver = ldap args = ${cfg.ldap-conf}