📝 Preliminary Checks
👀 What Happened?
This PR changed the virtual_mailbox_maps to texthash:/etc/postfix/vmailbox. This is only useful for file-account-based systems.
The LDAP integration needs postconf 'virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf' but is configured before that, so the correct setting is overwritten by the new code.
This leads postfix being unable process incoming messages.
We need to tweak this line to check for LDAP too or use a different order.
For anyone affected using edge:
Use a user-patches.sh with:
postconf 'virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf'
👟 Reproduction Steps
Enable LDAP support via ACCOUNT_PROVISIONER=LDAP.
🐋 DMS Version
edge
💻 Operating System and Architecture
Debian 11
⚙️ Container configuration files
No response
📜 Relevant log output
Dec 10 17:16:42 mail postfix/smtpd[1247]: warning: texthash:/etc/postfix/vmailbox is unavailable. open database /etc/postfix/vmailbox: No such file or directo
ry
Dec 10 17:16:42 mail postfix/smtpd[1247]: warning: texthash:/etc/postfix/vmailbox lookup error for "[email protected]"
Dec 10 17:16:42 mail postfix/smtpd[1247]: NOQUEUE: reject: RCPT from localhost[::1]: 451 4.3.0 <r
[email protected]>: Temporary lookup failure; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail.example.com>
📝 Preliminary Checks
👀 What Happened?
This PR changed the
virtual_mailbox_mapstotexthash:/etc/postfix/vmailbox. This is only useful for file-account-based systems.The LDAP integration needs
postconf 'virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf'but is configured before that, so the correct setting is overwritten by the new code.This leads postfix being unable process incoming messages.
We need to tweak this line to check for LDAP too or use a different order.
For anyone affected using edge:
Use a user-patches.sh with:
postconf 'virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf'👟 Reproduction Steps
Enable LDAP support via
ACCOUNT_PROVISIONER=LDAP.🐋 DMS Version
edge
💻 Operating System and Architecture
Debian 11
⚙️ Container configuration files
No response
📜 Relevant log output