mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 18:15:29 +02:00
setup: added grace period for account creation (#2531)
This commit is contained in:
parent
3cb5668b6f
commit
412f675bfe
2 changed files with 16 additions and 9 deletions
|
@ -131,10 +131,10 @@ NAME
|
|||
|
||||
#### Starting for the first time
|
||||
|
||||
On first start, you will likely see an error stating that there are no mail accounts and the container will exit. You must now do one of two things:
|
||||
On first start, you will need to add at least one email account (unless you're using LDAP). You have two minutes to do so, otherwise DMS will shutdown and restart. You can add accounts with the following two methods:
|
||||
|
||||
1. Use `setup.sh` to help you: `./setup.sh email add <user@domain> <password>`. You may need the `-c` option to provide the local path for persisting configuration (_a directory that mounts to `/tmp/docker-mailserver` inside the container_). This will spin up a new container, mount your configuration volume, and create your first account.
|
||||
2. Execute the complete command yourself: `docker run --rm -v "${PWD}/docker-data/dms/config/:/tmp/docker-mailserver/" docker.io/mailserver/docker-mailserver setup email add <user@domain> <password>`. Make sure to mount the correct configuration directory.
|
||||
1. Use `setup.sh`: `./setup.sh email add <user@domain>`
|
||||
2. Run the command directly in the container: `docker exec -ti <CONTAINER NAME> setup email add <user@domain>`
|
||||
|
||||
You can then proceed by creating the postmaster alias and by creating DKIM keys.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue