1
1
Fork 0
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-05-07 18:06:07 +02:00

fix: Dovecot Quota dummy accounts for aliases should check for existing users with an exact user key lookup (#2640)

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
This commit is contained in:
Thomas VIAL 2022-06-15 12:31:58 +02:00 committed by GitHub
parent 7fe2f21df4
commit a84b8a130c
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ function _create_dovecot_alias_dummy_accounts
fi
DOVECOT_USERDB_LINE="${ALIAS}:${REAL_ACC[1]}:5000:5000::/var/mail/${REAL_DOMAINNAME}/${REAL_USERNAME}::${REAL_ACC[2]:-}"
if grep -qF "${DOVECOT_USERDB_LINE}" "${DOVECOT_USERDB_FILE}"
if grep -qi "^${ALIAS}:" "${DOVECOT_USERDB_FILE}"
then
_log 'warn' "Alias '${ALIAS}' will not be added to '${DOVECOT_USERDB_FILE}' twice"
else