readme updated
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-12-21 14:33:11 +01:00
parent ee5ec605c6
commit 5ae80b4d9b

View File

@ -8,9 +8,10 @@ option to send mail from other containers without the need to configure the smar
Four environment variables are used to configure the container: Four environment variables are used to configure the container:
* `SMARTHOST`: The is the name of the smarthost. exim within this container will send all mail to this smarthost for further delivery. Make sure the smarthost accepts mail from this container without authentication. * `SMARTHOST`: The is the name of the smarthost. exim within this container will send all mail to this smarthost for further delivery. Make sure the smarthost accepts mail from this container without authentication.
* `LOCALMAILNAME`: The domain name which shall be used as the domain part of the sender address in every outgoing mail. * `SMARTHOST_USER`: Login for smarthost. If no authentication is required, skip it.
* `SMARTHOST_PASS`: Password for smarthost.
* `LOCALMAILNAME`: The domain name which shall be used as the domain part of the sender address in every outgoing mail. If not required, skip it.
* `RELAYNETS`: Networks exim in this container accepts for relaying. Separate multiple networks by semicolon. * `RELAYNETS`: Networks exim in this container accepts for relaying. Separate multiple networks by semicolon.
* `ROOT`: Addresses to forward root mail to. Separate multiple addresses by space.
## Deployment ## Deployment
@ -23,7 +24,7 @@ Typically, don't expose the smtp port of this container to the default network o
``` ```
#!/bin/bash #!/bin/bash
IMAGE=quay.io/wollud1969/exim-docker:0.0.9 IMAGE=quay.io/wollud1969/exim-docker:0.2.2
MAILER_NETWORK=mailer-network MAILER_NETWORK=mailer-network
docker network create $MAILER_NETWORK || echo "mailer-network already exists" docker network create $MAILER_NETWORK || echo "mailer-network already exists"
@ -37,7 +38,6 @@ docker run \
-e SMARTHOST=smarthost.example.com \ -e SMARTHOST=smarthost.example.com \
-e LOCALMAILNAME=krohne.com \ -e LOCALMAILNAME=krohne.com \
-e RELAYNETS=$RELAYNETS \ -e RELAYNETS=$RELAYNETS \
-e ROOT=root@example.com \
--network $MAILER_NETWORK \ --network $MAILER_NETWORK \
--name mailer \ --name mailer \
--restart always \ --restart always \
@ -54,3 +54,4 @@ docker network connect mailer-network name_of_other_container
Now you can use the name of the mailer container, here `mailer` as smarthost name in that other container. Now you can use the name of the mailer container, here `mailer` as smarthost name in that other container.