Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alash3al/smtp2http
A tiny software that receive a smtp request (email) and send it to the specified webhook as a http post request
https://github.com/alash3al/smtp2http
go golang mail mailbox smtp-server smtp2http webhook
Last synced: 5 days ago
JSON representation
A tiny software that receive a smtp request (email) and send it to the specified webhook as a http post request
- Host: GitHub
- URL: https://github.com/alash3al/smtp2http
- Owner: alash3al
- License: apache-2.0
- Created: 2018-11-12T17:38:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T07:14:12.000Z (about 1 year ago)
- Last Synced: 2025-01-17T07:04:16.958Z (12 days ago)
- Topics: go, golang, mail, mailbox, smtp-server, smtp2http, webhook
- Language: Go
- Homepage:
- Size: 1.35 MB
- Stars: 525
- Watchers: 14
- Forks: 81
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SMTP2HTTP (email-to-web)
========================
smtp2http is a simple smtp server that resends the incoming email to the configured web endpoint (webhook) as a basic http post request.Dev
===
- `go mod vendor`
- `go build`Dev with Docker
==============
Locally :
- `go mod vendor`
- `docker build -f Dockerfile.dev -t smtp2http-dev .`
- `docker run -p 25:25 smtp2http-dev --timeout.read=50 --timeout.write=50 --webhook=http://some.hook/api`Or build it as it comes from the repo :
- `docker build -t smtp2http .`
- `docker run -p 25:25 smtp2http --timeout.read=50 --timeout.write=50 --webhook=http://some.hook/api`The `timeout` options are of course optional but make it easier to test in local with `telnet localhost 25`
Here is a telnet example payload :
```
HELO zeus
# smtp answerMAIL FROM:
# smtp answerRCPT TO:
# smtp answerDATA
your mail content
.```
Docker (production)
=====
**Docker images arn't available online for now**
**See "Dev with Docker" above**
- `docker run -p 25:25 smtp2http --webhook=http://some.hook/api`Native usage
=====
`smtp2http --listen=:25 --webhook=http://localhost:8080/api/smtp-hook`
`smtp2http --help`Contribution
============
Original repo from @alash3al
Thanks to @aranajuan