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

https://github.com/guerrerocarlos/serverless-email-telegram-bot

Multiple-domain Email Client Telegram Bot, (uses AWS SES and AWS Lambda), similar to http://t.me/gmailbot
https://github.com/guerrerocarlos/serverless-email-telegram-bot

Last synced: 4 months ago
JSON representation

Multiple-domain Email Client Telegram Bot, (uses AWS SES and AWS Lambda), similar to http://t.me/gmailbot

Awesome Lists containing this project

README

        

# serverless-email-telegram-bot

> Telegram Email Client for multiple domains, using AWS SES (Simple Email Service) and AWS Lambda

Self-hosted email service and (Telegram) client similar to [@GmailBot](http://t.me/gmailbot)

## Installation

### 1. Install Serverless

```
npm install -g serverless
```

### 2. Install Dependencies and Deploy to AWS Lambda

```
yarn install
sls deploy
```

- Check the URL automatically generated for the API Gateway and add it as `telegramHook` in config.json
- Check the public URL of the bucket and add it as `publicS3URL` in config.json, this url is used to see emails in html format and for downloading attachments bigger than 50Mb directly from s3.

### 3. Make AWS SES receive the emails and call the lambda function

- Add your domain to [AWS verified-senders-domain](https://console.aws.amazon.com/ses/home?#verified-senders-domain:)
- Create a new *rule* in [receipt-rules](https://console.aws.amazon.com/ses/home?region=us-east-1#receipt-rules:) and in Actions, select `Lambda` and point to this function.

### Ready :)