Skip to content

wec360/docker-fake-smtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Fake SMTP server based on https://github.com/Nilhcem/FakeSMTP

Is a wrapper around the FakeSMTP java app running on alpine linux with openjdk 8's JRE

Start with docker:

This will start an instance that puts the emails in /tmp/fakemail and listens on port 1025

docker run -d --name fakesmtp -p 1025:25 -v /tmp/fakemail:/var/mail wec360/fake-smtp

Or use in your docker compose file:

This will start an instance that listens on port 1025 and saves the emails in the email folder in the project

version: "2"

services:
  fakesmtp:
    image: wec360/fake-smtp
    ports:
      - "1025:25"

    volumes:
      - ./email:/var/mail