Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

kylegrantlucas/discord-smtp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord-SMTP Server

GitHub Workflow Status (branch) Docker Image Version (latest by date) Docker Pulls GitHub

A simple relay that accepts SMTP messages and forwards them to a Discord webhook.

Usage

Local

env DISCORD_TOKEN=xxxxxxxxxxxx SMTP_USERNAME=username SMTP_PASSWORD=password go run main.go

Docker

Run

docker run -t discord-smtp \
           -e PORT=25 \
           -e DISCORD_TOKEN=xxxxxxxxxxxx \
           -e SMTP_USERNAME=username \
           -e SMTP_PASSWORD=password \
           kylegrantlucas/discord-smtp-server

Compose

discord-smtp:
  image: kylegrantlucas/discord-smtp-server
  container_name: discord-smtp
  env:
    - PORT=25
    - DISCORD_TOKEN=xxxxxxxxxxxx
    - SMTP_USERNAME=username
    - SMTP_PASSWORD=password
  restart: always

Testing

$ telnet localhost 1025
EHLO localhost
AUTH PLAIN
AHVzZXJuYW1lAHBhc3N3b3Jk
MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>
DATA
Hey
.

Features

  • SMTP Authentication
  • Webhook Discovery

About

A simple SMTP-Discord Webhook relay.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published