Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saulshanabrook/sendgrid-inbound-relay

HTTP to SMTP email relay for SendGrid inbound webhook
https://github.com/saulshanabrook/sendgrid-inbound-relay

Last synced: 7 days ago
JSON representation

HTTP to SMTP email relay for SendGrid inbound webhook

Awesome Lists containing this project

README

        

# 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](https://app.sendgrid.com/settings/parse) and add the location of this service for your domain.

## Usage
You can use this with Docker:

```bash
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`:

```yml
base_image: ghcr.io/saulshanabrook/sendgrid-inbound-relay:main
update_pups: false

expose:
- "8080:8080"

env:
PORT: "8080"
SMTP_HOST: forum.valleyhousing.coop
```