relay

module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: MIT

README

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_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

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL