Sign inSign up

tecnativa/smtp-sink

By tecnativa

Updated over 9 years ago

Fake SMTP server on port 25, responds positively, and spits out all incoming emails to logs

Image
1

10K+

tecnativa/smtp-sink repository overview

Fake SMTP server using smtp-sink

What?

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.

Why?

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.

How?

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

Tag summary

Content type

Image

Digest

Size

3.3 MB

Last updated

over 9 years ago

docker pull tecnativa/smtp-sink