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 <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2022-05-09 21:06:56 -04:00
1 parent 6b96c82283
commit 7e761c91ea
1 file changed
+1 -1
@@ -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