Sign inSign up

brandonh317/smtp-relay

By brandonh317

•Updated 8 months ago

A preconfigured SMTP relay mean to relay messages to Amazon SES

Image
0

398

brandonh317/smtp-relay repository overview

⁠Simple SMTP Relay for Amazon SES

A lightweight, secure Postfix-based SMTP relay designed to forward emails from your internal services (like Tandoor, Jellyfin, or Pi-hole) to Amazon SES. Built on Alpine Linux for a minimal footprint.

⁠🚀 Features

  • Lightweight: Built on alpine:latest, minimal resource usage.
  • Secure by Default: Configured to only accept mail from private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16).
  • SES Integration: Pre-configured for Amazon SES with STARTTLS.
  • Health Checks: Includes netcat based health monitoring.
  • No Local Auth: Designed for internal trusted networks; no SASL auth required for clients connecting to port 25.

⁠📋 Quick Start

⁠Docker CLI
docker run -d \
  --name smtp-relay \
  -p 25:25 \
  -e SES_SMTP_USERNAME=your_ses_key \
  -e SES_SMTP_PASSWORD=your_ses_secret \
  -e SES_SMTP_HOST=email-smtp.us-east-1.amazonaws.com \
  yourusername/smtp-relay:latest

⁠⚙️ Configuration

VariableDefaultDescription
SES_SMTP_HOSTemail-smtp.us-east-1.amazonaws.comThe AWS SES SMTP endpoint.
SES_SMTP_PORT587The port to connect to SES (must support STARTTLS).
SES_SMTP_USERNAMERequiredYour AWS SES SMTP Username (not IAM user).
SES_SMTP_PASSWORDRequiredYour AWS SES SMTP Password.
RELAY_HOST0.0.0.0Interface for Postfix to bind to.
RELAY_PORT25Port for Postfix to listen on.
LOG_LEVELINFOLogging verbosity.
⁠Example Docker Compose Configuration
services:
  smtp-relay:
    image: brandonh317/smtp-relay:latest
    environment:
      SES_SMTP_HOST: email-smtp.us-east-1.amazonaws.com
      SES_SMTP_PORT: 587
      SES_SMTP_USERNAME: your_ses_access_key
      SES_SMTP_PASSWORD: your_ses_secret_key
      RELAY_HOST: 0.0.0.0
      RELAY_PORT: 25
      LOG_LEVEL: INFO

Tag summary

Content type

Image

Digest

sha256:f3bb1376a…

Size

12 MB

Last updated

8 months ago

docker pull brandonh317/smtp-relay