Sign inSign up

rev9en/smtpserver

By rev9en

•Updated over 1 year ago

Simple smtp relay server

Image
0

365

rev9en/smtpserver repository overview

⁠🐳 SMTP Server Docker Image

This is a simple SMTP Relay server based on postfix⁠.

You can run a local smtp server which are pointed to the real private email provider.

Tested on Gmail and Yahoo.

INPORTANT: SMTP server doesn't have any authentication layer. Please do not put it into the public network.

⁠Usage

⁠Option 1: Use configuration file
  1. Create a configuration file: cp env.example .env
  2. Update values in the .env file
  3. Run docker image: docker run -d -it --rm -p 25:25 --env-file .env --name smtpserver rev9en/smtpserver
⁠Option 2: use a system environemnt variables, without a configuration file:
docker run -d -it --rm -p 25:25 \
    -e SMTP_SERVER=<your real stmp server> \
    -e SMTP_PORT=<real smtp port, ex: 465> \
    -e [email protected] \
    -e SMTP_PASSWORD=SecretPassword \
    --name smtpserver rev9en/smtpserver

After that a regular smtp server will be available on localhost port 25.

⁠Test

  1. Start rev9en/smtpserver docker image (see: usage section⁠)
  2. Run test script to send a test email via SMTP server on localhost port 25: python send-test-email.py <[email protected]>

⁠Build locally

make build

Tag summary

Content type

Image

Digest

sha256:b3a332596…

Size

10.4 MB

Last updated

over 1 year ago

docker pull rev9en/smtpserver