Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not add accounts that already exists to account files #2419

Merged
merged 10 commits into from
Feb 21, 2022

Conversation

georglauterbach
Copy link
Member

Description

Includes a fix with which users are not added to the accounts files of Postfix and Dovecot if they are already present.

Fixes #2416

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change that does improve existing functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (README.md or the documentation under docs/)
  • 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

Somehow I forgot to check for aliases (which actually caused the
original issue to be opened...). This commit fixes the issue properly
and also introduces warning messages when aliases or accountts are
about to be added twice.
target/scripts/helpers/accounts.sh Outdated Show resolved Hide resolved
target/scripts/helpers/accounts.sh Outdated Show resolved Hide resolved
target/scripts/helpers/accounts.sh Outdated Show resolved Hide resolved
Co-authored-by: Casper <casperklein@users.noreply.github.com>
@georglauterbach
Copy link
Member Author

Cancelled the current workflow because I will push another commit soon. I don't like wasting compute time (even if it's not mine 😆)

casperklein
casperklein previously approved these changes Feb 20, 2022
target/scripts/helpers/accounts.sh Outdated Show resolved Hide resolved
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
@georglauterbach georglauterbach merged commit 399284c into master Feb 21, 2022
@georglauterbach georglauterbach deleted the fix/2416 branch February 21, 2022 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/scripts kind/improvement Improve an existing feature, configuration file or the documentation priority/medium service/dovecot service/postfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mail dovecot: auth: Error: passwd-file /etc/dovecot/userdb: User user@mydomain.com exists more than once
3 participants