# lori
[](https://github.com/meysam81/lori)
[](https://github.com/meysam81/lori)
[](https://crates.io/crates/lori)
[](https://github.com/meysam81/lori)
[](https://github.com/meysam81/lori/commits)
[](https://github.com/meysam81/lori/releases)
[](https://github.com/meysam81/lori/stargazers)
[](https://github.com/meysam81/lori/releases)
[](https://crates.io/crates/lori)
[](https://crates.io/crates/lori)
[](https://hub.docker.com/r/meysam81/lori)
[](https://hub.docker.com/r/meysam81/lori)
[](https://github.com/meysam81/lori)
[](https://github.com/meysam81/lori)
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
- [lori](#lori)
- [Intro](#intro)
- [How to install it?](#how-to-install-it)
- [Using cargo](#using-cargo)
- [Download compiled binary](#download-compiled-binary)
- [Docker](#docker)
- [How to use it?](#how-to-use-it)
- [Todo](#todo)
## 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][sendgrid-smtp] is as below:
```plaintext
smtps://apikey:SENDGRID_API_KEY@smtp.sendgrid.net:465/
```
## How to install it?
### Using cargo
```bash
cargo install lori
```
### Download compiled binary
You can download the latest release from the [releases page][release] for your
platform.
### Docker
```bash
docker run -p 2525:2525 -e SENDGRID_API_KEY=your-api-key meysam81/lori
```
## How to use it?
```bash
export SENDGRID_API_KEY=your-api-key
lori # listening on localhost:2525
```
[sendgrid-smtp]: https://docs.sendgrid.com/for-developers/sending-email/getting-started-smtp
[release]: https://github.com/meysam81/lori/releases/latest
## Todo
- [ ] The docker image is stopped after processing the first email!