Alter 2 files
Update README.md Delete runcmt.txt
This commit is contained in:
parent
86288e6a76
commit
63a844aead
2 changed files with 13 additions and 1 deletions
13
README.md
13
README.md
|
@ -19,6 +19,19 @@ It is configured using environment variables:
|
|||
* `POSTFIX_RELAY_HOST`: the hostname of the upstream relay to forward mail to, eg: `smtp.fastmail.com:587`
|
||||
* `POSTFIX_RELAY_USER`: username for the relay server
|
||||
* `POSTFIX_RELAY_PASSWORD`: password for the relay server
|
||||
* This can also be specified as `POSTFIX_RELAY_PASSWORD_FILE` where the value of that var corresponds to a file inside the container.
|
||||
|
||||
You can then expose whatever ports you might want. To expose `127.0.0.1:25`, you could use a command like:
|
||||
|
||||
```
|
||||
docker run -d -p 127.0.0.1:25:25 \
|
||||
-e POSTFIX_SENDER_DOMAINS=example.com \
|
||||
-e POSTFIX_HOSTNAME=$(hostname)-relay \
|
||||
-e POSTFIX_RELAY_HOST=smtp.fastmail.com:587 \
|
||||
-e POSTFIX_RELAY_USER=dsfgkjhsd \
|
||||
-e POSTFIX_RELAY_PASSWORD=gazpacho \
|
||||
registry.git.tdpain.net/pkg/docker-postfix:latest
|
||||
```
|
||||
|
||||
## Prior art
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
docker run -d --rm --name postfix -p 127.0.0.1:25:25 -e POSTFIX_SENDER_DOMAINS=akpain.net -e POSTFIX_HOSTNAME=akp-ThinkPad-E14 -e POSTFIX_RELAY_HOST=smtp.fastmail.com:587 -e POSTFIX_RELAY_USER=abi@akpain.net -e POSTFIX_RELAY_PASSWORD=8l4n2b495g222v8f postfix
|
Loading…
Add table
Add a link
Reference in a new issue