mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 10:05:00 +02:00
fix: Avoid alias being used as regex during dovecot dummy account userdb detection (#4222)
Applies alternative approach previously suggested by @polarathene and adds test cases to prevent future regressions
This commit is contained in:
parent
26a44995a9
commit
34eb54ac39
4 changed files with 32 additions and 2 deletions
|
@ -3,3 +3,13 @@ alias1@localhost.localdomain user1@localhost.localdomain
|
|||
# this is also a test comment, :O
|
||||
alias2@localhost.localdomain external1@otherdomain.tld
|
||||
@localdomain2.com user1@localhost.localdomain
|
||||
|
||||
## Dovecot "dummy accounts" for quota support (handled in `helpers/accounts.sh`)
|
||||
# Do not filter alias by substring condition (longer prefix must be before substring alias):
|
||||
# https://github.com/docker-mailserver/docker-mailserver/issues/2639
|
||||
prefixtest@localhost.localdomain user2@otherdomain.tld
|
||||
test@localhost.localdomain user2@otherdomain.tld
|
||||
# Do not filter alias when input be treated as regex tokens (eg `.`):
|
||||
# https://github.com/docker-mailserver/docker-mailserver/issues/4170
|
||||
first-name@localhost.localdomain user2@otherdomain.tld
|
||||
first.name@localhost.localdomain user2@otherdomain.tld
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue