Simple Python script to relay internal SMTP to AWS SES with sender address rewriting.
1.2K
Small Docker image with a simple Python script to relay internal SMTP to AWS SES with sender address rewriting.
This is an OPEN RELAY meant to run on a LAN. This will accept any port 25 SMTP mail unauthenticated. It is meant to be placed in a DMZ or behind a firewall.
services:
python-ses-relay:
image: dpcox/python-ses-relay:latest
container_name: python-ses-relay
restart: unless-stopped
ports:
- "25:25"
cap_add:
- NET_BIND_SERVICE
user: "1000:1000" # optional, run as non-root
environment:
SES_HOST: email-smtp.us-east-2.amazonaws.com
SES_PORT: 587
SES_USER: "SES_USERNAME"
SES_PASS: "SES_PASSWORD"
STATIC_SENDER: "[email protected]"
VALIDATED_DOMAIN: "example.com"
Content type
Image
Digest
sha256:06d7f5a17…
Size
45.5 MB
Last updated
about 1 month ago
docker pull dpcox/python-ses-relay