Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dnknth/docker-postfix
Minimal Postfix for Docker with relay support
https://github.com/dnknth/docker-postfix
alpine-linux docker-image postfix
Last synced: 29 days ago
JSON representation
Minimal Postfix for Docker with relay support
- Host: GitHub
- URL: https://github.com/dnknth/docker-postfix
- Owner: dnknth
- License: gpl-2.0
- Created: 2018-10-09T17:16:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T19:58:20.000Z (3 months ago)
- Last Synced: 2024-09-10T00:30:02.726Z (3 months ago)
- Topics: alpine-linux, docker-image, postfix
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# What's this?
A very minimal Postfix image for Docker with relay support.
It provides outbound SMTP only, to get mails out of Docker.
The image is optimized for size (< 10MB) and simplicity.## Usage
Start Postfix standalone (to send emails from containers)
docker run --rm --name=postfix \
-e MTP_HOST=foo.com \
dnknth/alpine-postfixOr use a remote relay server:
$ docker run --rm --name=postfix \
-e MTP_HOST=foo.com \
-e MTP_RELAY=smtp.gmail.com \
-e MTP_USER=foo \
-e MTP_PASS=secret \
dnknth/alpine-postfixSend emails:
docker exec -it postfix mail [email protected]
## Supported environment variables
* `MTP_HOST`: The `myhostname` parameter specifies the internet hostname of this mail system (localhost)
* `MTP_DESTINATION`: The `mydestination` parameter specifies the list of domains that this machine considers itself the final destination for.
* `MTP_BANNER`: The `smtpd_banner` parameter specifies the text that follows the 220 code in the SMTP server's greeting banner.
* `MTP_RELAY`: The `relayhost` parameter specifies the default host to send mail to when no entry is matched in the optional transport(5) table.
* `MTP_RELAY_DOMAINS`: The `relay_domains` parameter restricts what destinations this system will relay mail to.
* `MTP_PORT`: The `relayhost` port
* `MTP_USER`: The user used to connect to the `relayhost`
* `MTP_PASS`: The password used to connect to the `relayhost`
* `MTP_INTERFACES`: The `inet_interfaces` parameter specifies the network interface addresses that this mail system receives mail on.