mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Updated Home (markdown)
This commit is contained in:
parent
756c6e3af2
commit
f82e56f75b
|
@ -1,8 +1,8 @@
|
|||
## Usage
|
||||
|
||||
#### Get v2 image
|
||||
#### Get latest image
|
||||
|
||||
docker pull tvial/docker-mailserver:latest
|
||||
docker pull tvial/docker-mailserver:latest
|
||||
|
||||
#### Create a `docker-compose.yml`
|
||||
|
||||
|
@ -12,19 +12,18 @@ Adapt this file with your FQDN.
|
|||
|
||||
services:
|
||||
mail:
|
||||
image: tvial/docker-mailserver:v2
|
||||
image: tvial/docker-mailserver:latest
|
||||
# build: .
|
||||
hostname: mail
|
||||
domainname: domain.com
|
||||
container_name: mail
|
||||
volumes:
|
||||
- maildata:/var/mail
|
||||
ports:
|
||||
- "25:25"
|
||||
- "143:143"
|
||||
- "587:587"
|
||||
- "993:993"
|
||||
volumes:
|
||||
- maildata:/var/mail
|
||||
- ./config/:/tmp/docker-mailserver/
|
||||
|
||||
volumes:
|
||||
|
@ -39,14 +38,14 @@ Don't forget to adapt MAIL_USER and MAIL_PASS to your needs
|
|||
docker run --rm \
|
||||
-e MAIL_USER=user1@domain.tld \
|
||||
-e MAIL_PASS=mypassword \
|
||||
-ti tvial/docker-mailserver:v2 \
|
||||
-ti tvial/docker-mailserver:latest \
|
||||
/bin/sh -c 'echo "$MAIL_USER|$(doveadm pw -s CRAM-MD5 -u $MAIL_USER -p $MAIL_PASS)"' >> config/postfix-accounts.cf
|
||||
|
||||
#### Generate DKIM keys
|
||||
|
||||
docker run --rm \
|
||||
-v "$(pwd)/config":/tmp/docker-mailserver \
|
||||
-ti tvial/docker-mailserver:v2 generate-dkim-config
|
||||
-ti tvial/docker-mailserver:latest generate-dkim-config
|
||||
|
||||
Now the keys are generated, you can configure your DNS server by just pasting the content of `config/opedkim/keys/domain.tld/mail.txt` in your `domain.tld.hosts` zone.
|
||||
|
||||
|
@ -54,4 +53,4 @@ Now the keys are generated, you can configure your DNS server by just pasting th
|
|||
|
||||
docker-compose up -d mail
|
||||
|
||||
You're done!
|
||||
You're done!
|
Loading…
Reference in a new issue