#1374·lldap

[FEATURE REQUEST] Improving Docker MailServer configuration : add missing Dovecot environnement variables

Author: maitreyoreneCreated Dec 29, 2025Updated Sep 16, 2026
Labelsenhancement

Motivation I want this feature because the current mailserver.md configuration example does not include the DOVECOT_PASS_FILTER and DOVECOT_PASS_ATTRS environment variables, which are required for a fully functional Dovecot authentication setup with LLDAP. Without these variables, Dovecot cannot correctly retrieve user credentials or match users by either UID or email address, leading to authentication failures or inconsistent behavior.

This addition is especially important when using a configuration such as =home=/var/mail/%d/%n in the DOVECOT_USER_ATTRS environment variable, because Dovecot must be able to resolve both the user’s email and password attributes from LDAP in order to correctly map users to their mailbox paths.

Adding these missing variables would enable reliable Dovecot integration out of the box and help users configure Docker MailServer or similar setups without guesswork or trial‑and‑error.

The solution I'd like Adding the two missing environment variables in example_configs/mailserver.md

DOVECOT_PASS_FILTER=(&(objectClass=inetOrgPerson)(|(uid=%u)(mail=%u)))

DOVECOT_PASS_ATTRS==user=%{ldap:mail},=password=%{ldap:userPassword}