Giter Site home page Giter Site logo

relay's Introduction

mail-relay

Verify Go Report Card Go Reference

SMTP server to use for forwarding messages via HTTP-based services in environments not supporting SMTP outbound directly

How this works

Relay accepts SMTP connection to handle message with invoking Mailgun API with the message it got. Simply :) In depth in current implementation relay sends message synchronously via Mailgun Go's client.

How to use

docker run -it \
  -e RELAY_DRIVER=mailgun \
  -e RELAY_MAILGUN_API_KEY="<MAILGUN_API_KEY> \
  -e RELAY_DOMAIN="<domain>" \
  -e RELAY_MAILGUN_URL="<url>" \
  -e RELAY_ADDR=:25 \
  -e RELAY_MAX_IDLE_SECONDS=300 \
  -e RELAY_MAX_MESSAGE_BYTES=1048576 \
  -e RELAY_MAX_RECIPIENTS=50 \
  ghcr.io/teran/relay:latest

RELAY_MAILGUN_URL is an API URL:

  • https://api.eu.mailgun.net/v3 for EU
  • https://api.mailgun.net/v3 for US

relay's People

Contributors

dependabot[bot] avatar fossabot avatar teran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.