Skip to content

Add skip feature to mailcow admin password reset script#7078

Open
HichemAK wants to merge 1 commit intomailcow:stagingfrom
HichemAK:patch-2
Open

Add skip feature to mailcow admin password reset script#7078
HichemAK wants to merge 1 commit intomailcow:stagingfrom
HichemAK:patch-2

Conversation

@HichemAK
Copy link

@HichemAK HichemAK commented Feb 24, 2026

Added option to skip confirmation for resetting the mailcow admin account.

Contribution Guidelines

What does this PR include?

Short Description

I simply gave the possibility to skip confirmation in helper-scripts/mailcow-reset-admin.sh using a -y or --yes flag. This is useful for automation.

Affected Containers

No container is affected

Did you run tests?

What did you tested?

I tested the script both and without the flag I introduced.

Without flag

root@XXX:/opt/mailcow-dockerized# ./helper-scripts/mailcow-reset-admin.sh
Checking MySQL service... OK
Are you sure you want to reset the mailcow administrator account? [y/N] y

Working, please wait...

Reset credentials:
---
Username: admin
Password: 4awgpEghlxVis9xa
TFA: none

With either -y or --yes flag

root@XXX:/opt/mailcow-dockerized# ./helper-scripts/mailcow-reset-admin.sh -y
Checking MySQL service... OK

Working, please wait...

Reset credentials:
---
Username: admin
Password: _RlQ3Qh5i0VY-kAF
TFA: none

What were the final results? (Awaited, got)

The script works as expected with or without the flag.

Added option to skip confirmation for resetting the mailcow admin account.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant