Alter 2 files

Update README.md
Delete runcmt.txt
This commit is contained in:
akp 2025-02-08 23:19:15 +00:00
parent 86288e6a76
commit 63a844aead
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755
2 changed files with 13 additions and 1 deletions

View file

@ -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

View file

@ -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