Skip to content

saulshanabrook/sendgrid-inbound-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sendgrid Inbound Email Webhook to SMTP Relay

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.

Setup with Sengrid

Go to the "Inbound Parse" settings in Sengrid and add the location of this service for your domain.

Usage

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

Usage with discourse

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

About

HTTP to SMTP email relay for SendGrid inbound webhook

Resources

Stars

Watchers

Forks

Releases

No releases published