This repository contains a simple Python script that can be used to receive emails from Sendgrid's Inbound Parse Webhook and relay them to an SMTP server.
Go to the "Inbound Parse" settings in Sengrid and add the location of this service for your domain.
You can use this with Docker:
docker run -e PORT 8080 -p 8080:8080 -e SMTP_HOST my-smtp.server ghcr.io/saulshanabrook/sendgrid-inbound-relay:main
Make a container for this with nano containers/inbound-relay.yml
:
base_image: ghcr.io/saulshanabrook/sendgrid-inbound-relay:main
update_pups: false
expose:
- "8080:8080"
env:
PORT: "8080"
SMTP_HOST: forum.valleyhousing.coop