To add a new user to the test email server please follow these steps:
- Go to
docker-mailserver/docker-compose.yml. Uncomment #- ./maildata_volume:/var/mail

- Run the local email server via
docker-mailserver/run_email_server.sh
- Run
docker-mailserver/scripts/add_user.sh to add a new user. For example ./add_user.sh has_msgs_no_backups@flowcrypt.test
- Check
docker-mailserver/config/postfix-accounts.cf. There should be a new account.

- After that it would be nice to log in with created credentials to prepare the user's folders on the email server. I use
Thunderbird for that.

- Then run
docker-mailserver/stop_email_server.sh to stop the email server.
- Go to
docker-mailserver/docker-compose.yml. Comment - ./maildata_volume:/var/mail to disable storing data locally.
- Copy
docker-mailserver/maildata_volume/flowcrypt.test to docker-mailserver/maildata_source/flowcrypt.test. maildata_source will be used to add changes to a docker image.
- After that need to update the docker image to apply changes.
It would be great to add it to Wiki
Originally posted by @DenBond7 in #1421 (comment)
To add a new user to the test email server please follow these steps:
docker-mailserver/docker-compose.yml. Uncomment#- ./maildata_volume:/var/maildocker-mailserver/run_email_server.shdocker-mailserver/scripts/add_user.shto add a new user. For example./add_user.sh has_msgs_no_backups@flowcrypt.testdocker-mailserver/config/postfix-accounts.cf. There should be a new account.Thunderbirdfor that.docker-mailserver/stop_email_server.shto stop the email server.docker-mailserver/docker-compose.yml. Comment- ./maildata_volume:/var/mailto disable storing data locally.docker-mailserver/maildata_volume/flowcrypt.testtodocker-mailserver/maildata_source/flowcrypt.test.maildata_sourcewill be used to add changes to a docker image.It would be great to add it to Wiki
Originally posted by @DenBond7 in #1421 (comment)