Skip to content

fix: _create_accounts() should run after waiting#2731

Merged
polarathene merged 1 commit intomasterfrom
fix/create-dovecot-account-after-wait
Aug 21, 2022
Merged

fix: _create_accounts() should run after waiting#2731
polarathene merged 1 commit intomasterfrom
fix/create-dovecot-account-after-wait

Conversation

@polarathene
Copy link
Copy Markdown
Member

Description

When waiting on an account to be added to postfix-accounts.cf, Dovecot account creation during the startup process had already run.

Startup continued without properly creating the mail account for Dovecot. Methods like setup email list (with ENABLE_QUOTAS=1) would fail. changedetector service was required to be triggered to re-create Dovecot users.

  • Wrapped the logic for wait + shutdown into a function call.
  • Moved _create_accounts() to bottom of the setup function.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • If necessary I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

When waiting on an account to be added to `postfix-accounts.cf`, Dovecot account creation at startup was already run.

Startup continued without properly creating the account for Dovecot. Methods like `setup email list` (with `ENABLE_QUOTAS=1`) would fail. Requiring the `changedetector` service to be triggered to re-create Dovecot users.

- Wrapped the logic for wait + shutdown into a function call.
- Moved `_create_accounts()` to bottom of the setup function.
Copy link
Copy Markdown
Member

@georglauterbach georglauterbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@polarathene polarathene merged commit 26053c2 into master Aug 21, 2022
@polarathene polarathene deleted the fix/create-dovecot-account-after-wait branch August 21, 2022 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants