Internal SMTP relay for docker containers.
You must configure your domain accordingly (reverse DNS, SPF, ...) for mail not to be considered as spam.
This image has not been extensively tested for security.
Only containers from docker network can use the smtp relay.
You shouldn't expose the port 25 of this container directly on the Internet.
First start the smtp relay container
docker run -d --name smtp-relay -e SMTP_HOSTNAME=smtp.domain.tld xadozuk/smtp-relay
Link the smtp relay to another container
docker run -d --link smtp-relay:smtp <image>
Connect to the smtp relay with
smtp:25inside your container.
- Enjoy !