Allows incoming email on a port (25) to be relayed to SendGrid for distribution.
Rename the .env.sample file to .env and ensure that the following environment variables are set in the .env file:
SSGR_PORT=25
SENDGRID_API_KEY=SG.123abc-helloworld
Execute the following from the app folder to install dependencies and start the server:
npm install
npm start
From the root folder execute:
docker build -t your-repo-tag -f docker/Dockerfile .
From the docker folder execute:
docker-compose up -d
dotenv
for loading environment variables from a .env file. GitHub Repo@sendgrid/mail
for sending emails over the SendGrid API. Documentation GitHub Repomailparser
for parsing emails sent into the server. GitHub Reposmtp-server
for listening for incoming emails. Documentationwinston
for logging. Github Repo