https://github.com/kadasz/image-smtp
🐳 Dockerized Postfix SMTP relay based on baseimage-docker
https://github.com/kadasz/image-smtp
docker docker-postfix docker-smtp image-smtp postfix-smtp
Last synced: 12 days ago
JSON representation
🐳 Dockerized Postfix SMTP relay based on baseimage-docker
- Host: GitHub
- URL: https://github.com/kadasz/image-smtp
- Owner: kadasz
- Created: 2018-07-11T15:24:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-22T19:44:44.000Z (almost 8 years ago)
- Last Synced: 2025-01-03T14:50:16.339Z (over 1 year ago)
- Topics: docker, docker-postfix, docker-smtp, image-smtp, postfix-smtp
- Language: Shell
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# image-smtp
Setup Postfix SMTP relay using Docker
### What for?
Able to sending email without using an external SMTP server
## How to use this image
### Build the image
```
git clone https://github.com/kadasz/image-smtp
cd image-smtp
docker build -t image-smtp .
```
### Run a container
The env variables should to be passed during starts container:
- `DOMAIN` the domain name your server is using
- `HOSTNAME` should be set to the FQDN of your mail server
- `NETWORKS` option means that relay mail from these IP without authentication
```
docker run -d --name mail --hostname mail -p 25:25 -e DOMAIN="domain.com" -e HOSTNAME="mail.domain.com" -e NETWORKS="127.0.0.0/8 192.168.10.0/24" image-smtp
```
The mail container will be started with exposed the 25 port to the docker host server.