Skip to content

A simple SMTP Server for Testing purposes. Emails are stored in an in-memory database and rendered in a Web UI

License

Notifications You must be signed in to change notification settings

fo0/fake-smtp-server

 
 

Repository files navigation

Fake SMTP Server

Build Status Sonarcloud Status

Simple SMTP Server which stores all received emails in an in-memory database and renders the emails in a web interface

Fork

fork from https://github.com/gessnerfl/fake-smtp-server

Docker

https://hub.docker.com/r/fo0me/fake-smtp-server

additional features

  • filter mails by matching the subject: variable: filteredSubjectRegexList (same like existing: filteredEmailRegexList)

docker-compose

version: "3"
services:
  smtp-relay:
    image: fo0me/fake-smtp-server:latest
    ports:
    - 465:5025
    - 5080:5080
    environment:
    - FAKESMTP_FORWARD_EMAILS=true
    - SPRING_MAIL_HOST=
    - SPRING_MAIL_PORT=
    - SPRING_MAIL_USERNAME=
    - SPRING_MAIL_PASSWORD=
    - SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=true
    - SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLED=false
    - SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_ENABLE=true
    - SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_TRUST=*
    - SPRING_MAIL_PROPERTIES_MAIL_DEBUG=true

test via telnet

telnet <server> <smtp-port>

paste following content

helo localhost
mail from:<test@example.com>
rcpt to:<YOU@example.com>
data
From: test@example.com
TO: YOU@example.com
Subject: test mail from command line

this is a test mail
.
quit

About

A simple SMTP Server for Testing purposes. Emails are stored in an in-memory database and rendered in a Web UI

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 92.0%
  • HTML 7.4%
  • Other 0.6%