#smtp #sendgrid #email #send-receive #command-line-tool #cli

app lori

A CLI utility that receives emails from SMTP and sends them to SendGrid

3 releases (breaking)

0.3.0 Aug 21, 2023
0.2.0 Aug 21, 2023
0.1.0 Aug 21, 2023

#4 in #sendgrid

Apache-2.0

23KB
84 lines

lori

Code Size Repo Size Docs Language Count Commit Intervals Last Release GitHub Stars GitHub Release Downloads Cargo Crate Crate Download Docker pulls Docker Image License Lines of Code

Table of Contents generated with DocToc

Intro

This is a simple SMTP server that receives mails and send it to SendGrid.

An improved version might include different incoming protocols and different outgoing integrations.

Note that SendGrid already supports receiving messages from SMTP, but I didn't find it before writing this app.

The format for sending an email through SMTP to SendGrid is as below:

smtps://apikey:SENDGRID_API_KEY@smtp.sendgrid.net:465/

How to install it?

Using cargo

cargo install lori

Download compiled binary

You can download the latest release from the releases page for your platform.

Docker

docker run -p 2525:2525 -e SENDGRID_API_KEY=your-api-key meysam81/lori

How to use it?

export SENDGRID_API_KEY=your-api-key
lori  # listening on localhost:2525

Todo

  • The docker image is stopped after processing the first email!

Dependencies

~16–30MB
~484K SLoC