Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.
/ docker-smtp-sink Public archive

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

License

Notifications You must be signed in to change notification settings

Tecnativa/docker-smtp-sink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages