Fake SMTP server on port 25, responds positively, and spits out all incoming emails to logs
10K+
smtp-sinkThis 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
Content type
Image
Digest
Size
3.3 MB
Last updated
over 9 years ago
docker pull tecnativa/smtp-sink