Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/ircop/smtp2tg

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ircop/smtp2tg

  • v0.0.0-20190705093809-73686d81a7f0
  • Source
  • Go
  • Socket score

Version published
Created
Source

smtp2tg

SMTP 2 Telegram very simple relay

Building

Building requires go version go1.6.1. You may use older versions, but without any warranty.

Before build, you must instal several packages:

go get gopkg.in/telegram-bot-api.v4
go get github.com/spf13/viper

And build program:

go build

Running

Copy binary file to /usr/local/bin, or just run from building directory:

./smtp2tg

or

./smtp2tg -c /etc/smtp2tg.toml

If you want to listen 25 port, you need run program as root.

Daemonizing

Unfortunately, golang has some problems with daemonizing: https://github.com/golang/go/issues/227

You can "daemonize" smtp2tg with system tools, like start-stop-daemon

Usage

You need to point valid dns MX-record to ipaddr, on which daemon is listening. Example, if smtp2tg is listening on 1.2.3.4:

$ORIGIN example.com.
...
alert                   A           1.2.3.4
alert                   IN MX 10    alert.example.com.

And then just send email to user@alert.example.com

FAQs

Package last updated on 05 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc