alash3al/smtp2http
alash3al/smtp2http has 558 GitHub stars and 90 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-17 03:52 UTC. Last push 2023-11-16.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
A tiny software that receive a smtp request (email) and send it to the specified webhook as a http post request
Web & AppsREADME.md
OriginalSMTP2HTTP (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 vendorgo build
Dev with Docker
Locally :
go mod vendordocker 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 answer
MAIL FROM:<[email protected]>
# smtp answer
RCPT TO:<[email protected]>
# smtp answer
DATA
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