https://github.com/ghusta/docker-fakesmtp
:mailbox_with_mail: Another docker image for FakeSMTP (https://github.com/Nilhcem/FakeSMTP)
https://github.com/ghusta/docker-fakesmtp
docker fakesmtp
Last synced: 8 months ago
JSON representation
:mailbox_with_mail: Another docker image for FakeSMTP (https://github.com/Nilhcem/FakeSMTP)
- Host: GitHub
- URL: https://github.com/ghusta/docker-fakesmtp
- Owner: ghusta
- License: other
- Created: 2016-12-21T12:53:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-27T08:38:17.000Z (about 1 year ago)
- Last Synced: 2025-04-23T15:46:25.104Z (about 1 year ago)
- Topics: docker, fakesmtp
- Language: Dockerfile
- Homepage:
- Size: 66.4 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# docker-fakesmtp
[](https://hub.docker.com/r/ghusta/fakesmtp)
[](https://github.com/ghusta/docker-fakesmtp/releases)
Another docker image for FakeSMTP (https://github.com/Nilhcem/FakeSMTP)
# Overview
[FakeSMTP](https://github.com/Nilhcem/FakeSMTP) is a Free Fake SMTP Server with GUI for testing emails in applications easily. It is written in Java.
# Docker
## Dockerfile
See original [there](https://github.com/Nilhcem/FakeSMTP/blob/master/Dockerfile).
## Usage
This allows you to run a SMTP server for testing applications which send mail. Each mail is written to a file in `/var/mail`
Starting a container :
docker run -d -p 2525:25 -v /tmp/fakemail:/var/mail ghusta/fakesmtp:2.8
See also docker usage on the [original project](https://github.com/Nilhcem/FakeSMTP#usage-on-docker).
## Refactoring
I use **eclipse-temurin** **~openjdk~** as base image, as **java** image is now _deprecated_ (see https://hub.docker.com/_/java/).
Furthermore, I use the JRE version, as JDK is not necessary (image _eclipse-temurin:17-jre_ for example).
### Available OpenJDK Docker images
Not all versions or alternatives (jdk, jre, slim, etc.) are available.
See which ones there : [Update to version X on base os Y](https://github.com/docker-library/openjdk/issues/272).
At the moment, OpenJDK 17, 21, 25 Docker images are based on the versions published here : https://adoptium.net/temurin/releases/ .