mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 16:55:59 +03:00
[GH-ISSUE #289] Database column mailbox.username is not unique #237
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PhrozenByte on GitHub (Jul 13, 2022).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/289
mailbox.usernamecurrently isn't required to be unique in the database (uniqueness is currently only enforced by code), nor is the column even indexed. Querying the ViMbAdmin database usingmailbox.usernameas (supposed to be unique) identifier is one of the main database queries any mail server software (Dovecot, Postfix, etc.) performs frequently (up to thousands of queries a day, depending on the number of users).mailbox.local_partshould be indexed, too.@barryo commented on GitHub (Feb 23, 2023):
Good catch. Fixed in
5836ad571aand can be updated via: