Fake SMTP server using smtp-sink
This image spins up a fake SMTP server that responds correctly to all SMTP
calls in port 25
, but instead of sending the messages, it spits their
contents out to STDOUT
.
BTW, we use Alpine. I hope you like that.
Because you will normally have a real SMTP relay in your docker environment, but when cloning a production database to your local development environment, you will most likely want it to send no messages to the outside world, while mocking the underlying app to make it think it sent it correctly.
Just run your service in a similar manner to this docker-compose.yaml
sample:
version: "2.1"
services:
smtp:
image: tecnativa/smtp-sink
app:
build: .
links:
- smtp