Thank you for this docker! The wiki illustrates creating an account and password. Is there a command to update (change) a password? I'm nervous to attempt and lose access to mail without guidance. Any help is greatly appreciated. Thanks in advance. -- Chris
Hi,
In order to update your password, you can run the following command ::
docker run --rm -e MAIL_PASS=Y0uR_P4$$w0rd! -ti tvial/docker-mailserver:latest /bin/sh -c 'echo "$(doveadm pw -s SHA512-CRYPT -p $MAIL_PASS)"'
It will generate a string. Then, just replace the old password string with the new one inside config/postfix-accounts.cf.
This config file looks like this:
[email protected]|password_string
NB : Please notice the pipe character (and no space) between email and password.
To be sure to not screw things up, just backup the file config/postfix-accounts.cf before modifying anything in it.
Maybe a takeaway from this is, that the setup.sh, should maybe support another command:
SUBCOMMANDS:
email:
./setup.sh email add <email> <password>
./setup.sh email update <email> <password>
./setup.sh email del <email>
./setup.sh email list
Search for the EMail and replace the password.
Nesousx -- Thanks!
@ckiszka would you like to contribute to the project adding this feature on setup.sh?
@tomav -- I will give it a shot. This is new to me, it may take me a little longer than you guys ;)
No problem, we'll be happy to count you as a contributor!
Fixed by #413
Most helpful comment
Maybe a takeaway from this is, that the setup.sh, should maybe support another command:
SUBCOMMANDS:
email:
Search for the EMail and replace the password.