fix: accounts.sh - Support first valid local account#4581
fix: accounts.sh - Support first valid local account#4581polarathene merged 10 commits intomasterfrom
accounts.sh - Support first valid local account#4581Conversation
- Ensure catch-all alias entries (eg: `@example.test`) are also skipped. Adding a dummy account for catch-all will not match a `quota-status` query to Dovecot by Postfix for a recipient. - When there are multiple addresses provided, they will now be iterated through by the `,` delimiter, instead of as a single value that fails. This way the first valid aliased address to a local Dovecot mailbox account will now be used for the dummy alias account. - The common logic for extracting the quota user attribute is now split out to a common function call.
The catch-all alias should not have been added as a Dovecot dummy account.
This comment was marked as resolved.
This comment was marked as resolved.
georglauterbach
left a comment
There was a problem hiding this comment.
Looks good, just some notes.
|
Beyond potentially double checking the Concerns like these are also incentives towards migrating some of the scripts away from bash (which I'd look into if we didn't have so much of a backlog as-is elsewhere). I definitely would like to pursue migrating our |
|
Will take a look soon and merge if everything is fine |
Didn't yet get around to it in time it seems; any pressure merging this? |
|
Oh sorry I just pressed the update branch button, didn't notice the auto merge I had enabled 😓 No there was no pressure to merge it. If you have anything you wanted to go over let me know and I can setup another PR. |
|
No worries, I'lll go over it soon and if anything comes up, I'll let you know. I do not anticipate any issues, though. |
|
Resolved all conversations, LGTM 👍🏼 |
Description
Ran into a small bug during a reproduction example, the alias was not creating a dummy account. This provides a slight improvement / fix to resolve that, along with minor revisions to the helper
accounts.sh.@example.test) are also skipped. Adding a dummy account for catch-all will not match aquota-statusquery to Dovecot by Postfix for a recipient.,delimiter, instead of as a single value that fails. This way the first valid aliased address to a local Dovecot mailbox account will now be used for the dummy alias account.Type of change
Checklist
CHANGELOG.md