mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Update README to reflect changes of v10.2.0
(#2234)
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
parent
61973f731c
commit
972c9b44d6
25
README.md
25
README.md
|
@ -108,17 +108,36 @@ If you're using `docker-mailserver` version `v10.1.x` or below, you will need to
|
|||
|
||||
### Get up and running
|
||||
|
||||
#### First Things First
|
||||
|
||||
**Use `docker-compose up / down`, not `docker-compose start / stop`**. Otherwise, the container is not properly destroyed and you may experience problems during startup because of inconsistent state.
|
||||
|
||||
You are able to get a full overview of how the configuration works by either running:
|
||||
|
||||
1. `./setup.sh help` which includes the options of `setup.sh`.
|
||||
2. `docker run --rm docker.io/mailserver/docker-mailserver:latest setup help` which provides you with all the information on configuration provided "inside" the container itself.
|
||||
|
||||
#### 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:
|
||||
|
||||
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.
|
||||
|
||||
You can then proceed by creating the postmaster alias and by creating DKIM keys.
|
||||
|
||||
``` BASH
|
||||
docker-compose up -d mailserver
|
||||
|
||||
# for SELinux, use -Z
|
||||
# you may add some more users
|
||||
# for SELinux, use -Z
|
||||
./setup.sh [-Z] email add <user@domain> [<password>]
|
||||
|
||||
# and configure aliases, DKIM and more
|
||||
./setup.sh [-Z] alias add postmaster@<domain> <user@domain>
|
||||
./setup.sh [-Z] config dkim
|
||||
```
|
||||
|
||||
If you're seeing error messages about unchecked errors, please **verify that you're using the right version of `setup.sh`**. Refer to the [Get the tools](#get-the-tools) section and / or execute `./setup.sh help` and read the `VERSION` section.
|
||||
|
||||
In case you're using LDAP, the setup looks a bit different as you do not add user accounts directly. Postfix doesn't know your domain(s) and you need to provide it when configuring DKIM:
|
||||
|
||||
``` BASH
|
||||
|
|
Loading…
Reference in a new issue