72

smtp2http - receives the mail message and post it to another webhook

 5 years ago
source link: https://www.tuicool.com/articles/hit/q6BFN3j
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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.

Why

At our company uFlare we wanted to build a platform form receiving requests via mai clients and posting it to a customized webhook to do its business logic, we wanted also to use Go as the environment so we started to develop that smtp server based on go-smtpsrv library, and because we believe in the power of the opensource we decided to release this software as an opensource project for the community because it may help anyone else.

Installation

  • binaries: go to releases page and choose your distribution.
  • go: go get github.com/uflare/smtp2http
  • docker: docker run --network=host uflare/smtp2http --listen=:25 --webhook=http://localhost:8080/api/smtp-hook --strict=true

Usage

smtp2http --listen=:25 --webhook=http://localhost:8080/api/smtp-hook --strict=true

Help

smtp2http --help

Contribution

Fork > Patch > Create Pull Request

Author

uFlare Company.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK