docker-mailserver/docs/content/setup-docker-mailserver-using-the-script-setup.sh.md
2016-12-03 01:11:25 +01:00

39 lines
996 B
Markdown

The latest version of the script `setup.sh` is included in the `docker-mailserver` repository. Get the last version to the script by copying this command in your console:
```
wget -q -O setup.sh https://raw.githubusercontent.com/tomav/docker-mailserver/master/setup.sh; chmod a+x ./setup.sh
```
Run `./setup.sh` without arguments and you get some usage informations.
```
Usage: ./setup.sh [-i IMAGE_NAME] [-c CONTAINER_NAME] <subcommand> <subcommand> [args]
OPTIONS:
-i IMAGE_NAME The name of the docker-mailserver image, by default
'tvial/docker-mailserver:latest'.
-c CONTAINER_NAME The name of the running container.
SUBCOMMANDS:
email:
./setup.sh email add <email> <password>
./setup.sh email del <email>
./setup.sh email list
config:
./setup.sh config dkim
./setup.sh config ssl
debug:
./setup.sh debug fetchmail
./setup.sh debug show-mail-logs
./setup.sh debug inspect
./setup.sh debug login <commands>
```