-
Notifications
You must be signed in to change notification settings - Fork 21
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
POSTFIXADMIN_SETUP_PASSWORD does nothing #63
Comments
The following is a work around Install using docker compose
Note the POSTFIXADMIN_SETUP_PASSWORD environment variable for specifying a setup_password does
Navigate to webpage
Enter setup password in relevant section Copy the hash generated Edit (or connect to container and edit within container) Add the generated hash to relevant row:
Now restart docker (noting will only be saved if using volumes) You can now connect to the setup.php page again and create and admin user
Once admin user is created can log into postfix admin using
|
You have set the environment variable to |
I don't get it (yet), for test I tried a very simple password: abc123 with Postfix Admin 3.3.14 docker Generated the hash and below the result: The docker env var is like this: But after starting the docker this is shown during startup and that does not have the complete password, only the first part of it.: Besides this duiring startup this message is shown: |
Hi - The problem is that your setup password contains a dollar, and that's being (incorrectly) expanded by a shell (or perhaps PHP) somewhere (hence the 'WARN[0000] The "HXhaKIRzTAGG3teqgTi4NuP94Qhl2sA2cab5SYQ9deonZc6jZxeh2" ... warning). |
The hashed password has the multiple $ in it, but that I cannot influence, in above example the password was abc123 and does not have a $ in it. What i see is that with every hashed password the hashed password starts always with $2y$10$...etc...etc For now I resolved the issue by using
|
The value of POSTFIXADMIN_SETUP_PASSWORD is the password hash, not the password itself you write in the text box of setup.php In docker-compose.yml the dollar sign must be doubled, so if you have a string like:
You have tio write in your docker-compose.yml:
Please update the documentation. |
see ^ |
I set the POSTFIXADMIN_SETUP_PASSWORD using environment variable but this appears to do nothing as I can't login to setup.php page using the specified password.
The text was updated successfully, but these errors were encountered: