From 7e761c91ea81e1ae49aa5aa46e5df50cfb2cc3f8 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 26 Apr 2022 07:51:06 -0700 Subject: [PATCH] email: Fix userdb lookups with LDAP Without the base attribute set, LDAP search returns no results and because of the lookup failure LMTP will not be able to deliver message even though postfix has successfully received the messages. Tests: - On a fresh container, send a message to a local user using roundcube. The user should receive the message successfully. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- .../email/data/etc/dovecot/conf.d/freedombox-ldap.conf.ext | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/email/data/etc/dovecot/conf.d/freedombox-ldap.conf.ext b/plinth/modules/email/data/etc/dovecot/conf.d/freedombox-ldap.conf.ext index 708caf22a..66168b4bf 100644 --- a/plinth/modules/email/data/etc/dovecot/conf.d/freedombox-ldap.conf.ext +++ b/plinth/modules/email/data/etc/dovecot/conf.d/freedombox-ldap.conf.ext @@ -3,6 +3,6 @@ # See: https://wiki.dovecot.org/AuthDatabase/LDAP/AuthBinds uris = ldapi:/// -base = +base = dc=thisbox auth_bind = yes auth_bind_userdn = uid=%u,ou=users,dc=thisbox