A local smtp server based on python that will push all emails to a discord webhook
974
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:
| name | description | default |
|---|---|---|
| * WEBHOOK | Provide the discord webhook url | None |
| ATTACH | Attaches the original email file to the discord message so you can view it with a regular email client | False |
| BIND | Sets the IP address for the server to bind to | 127.0.0.1 |
| PORT | Sets 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_HEADERS | Attaches a text file containing all of the headers | False |
| FILE_COMMAND | Path to the executable for the file command, in case it isn't available on the path or has a different name | file |
*Indicates a required variable
Content type
Image
Digest
sha256:4ac702cd8…
Size
367.3 MB
Last updated
about 3 years ago
docker pull limeparallelogram/smtp2discord