Sign inSign up

limeparallelogram/smtp2discord

By limeparallelogram

Updated about 3 years ago

A local smtp server based on python that will push all emails to a discord webhook

Image
0

974

limeparallelogram/smtp2discord repository overview

Runs a local SMTP server and relays all messages to a discord webhook.

Find more information at: https://github.com/Lime-Parallelogram/smtp2discord
Forked from: https://github.com/Wafffle77/smtp2discord

Run a container with

docker run -d -p 25:25 -e WEBHOOK=https://webhookurl -e BIND=0.0.0.0 limeparallelogram/smtp2discord

You can also use a docker-compose file if you prefer.

services:
  main:
    image: limeparallelogram/smtp2discord
    environment:
      - WEBHOOK=https://webhookurl
      - BIND=0.0.0.0
    ports:
      - 25:25

The full list of environmental variables is as follows:

namedescriptiondefault
* WEBHOOKProvide the discord webhook urlNone
ATTACHAttaches the original email file to the discord message so you can view it with a regular email clientFalse
BINDSets the IP address for the server to bind to127.0.0.1
PORTSets the port for the server to listen on (Note: This is only internal to the container. In most cases you should change the left number in the ports section)25
SEND_HEADERSAttaches a text file containing all of the headersFalse
FILE_COMMANDPath to the executable for the file command, in case it isn't available on the path or has a different namefile

*Indicates a required variable

Tag summary

Content type

Image

Digest

sha256:4ac702cd8

Size

367.3 MB

Last updated

about 3 years ago

docker pull limeparallelogram/smtp2discord