Docker-mailserver: Update Password

Created on 14 Oct 2016  路  7Comments  路  Source: tomav/docker-mailserver

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

enhancement waiting for contributor action

Most helpful comment

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.

All 7 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

strarsis picture strarsis  路  5Comments

m-a-v picture m-a-v  路  4Comments

rwarren picture rwarren  路  4Comments

ShuP1 picture ShuP1  路  4Comments

Mathieu-R picture Mathieu-R  路  4Comments