Skip to content

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

Merged
georglauterbach merged 10 commits intomasterfrom
fix/2416
Feb 21, 2022
Merged

fix: do not add accounts that already exists to account files#2419
georglauterbach merged 10 commits intomasterfrom
fix/2416

Conversation

@georglauterbach
Copy link
Copy Markdown
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.
Comment thread target/scripts/helpers/accounts.sh Outdated
Comment thread target/scripts/helpers/accounts.sh Outdated
Comment thread target/scripts/helpers/accounts.sh Outdated
@georglauterbach
Copy link
Copy Markdown
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 😆)

Comment thread target/scripts/helpers/accounts.sh Outdated
casperklein
casperklein previously approved these changes Feb 20, 2022
Comment thread target/scripts/helpers/accounts.sh Outdated
@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 [email protected] exists more than once

3 participants