fix: Only set virtual_mailbox_maps to texthash when using the FILE account provisioner (#3693)

Signed-off-by: René Plötz <reneploetz@users.noreply.github.com>
This commit is contained in:
René Plötz 2023-12-10 22:22:31 +01:00 committed by GitHub
parent bc9172fa74
commit 2f5dfed726
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,9 @@ EOF
# /etc/postfix/vmailbox is created by: scripts/helpers/accounts.sh:_create_accounts() # /etc/postfix/vmailbox is created by: scripts/helpers/accounts.sh:_create_accounts()
# This file config is for Postfix to verify a mail account exists before accepting # This file config is for Postfix to verify a mail account exists before accepting
# mail arriving and delivering it to Dovecot over LMTP. # mail arriving and delivering it to Dovecot over LMTP.
if [[ ${ACCOUNT_PROVISIONER} == 'FILE' ]]; then
postconf 'virtual_mailbox_maps = texthash:/etc/postfix/vmailbox' postconf 'virtual_mailbox_maps = texthash:/etc/postfix/vmailbox'
fi
postconf 'virtual_transport = lmtp:unix:/var/run/dovecot/lmtp' postconf 'virtual_transport = lmtp:unix:/var/run/dovecot/lmtp'
fi fi