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

https://github.com/guerrerocarlos/aws-ses-emailparser


https://github.com/guerrerocarlos/aws-ses-emailparser

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# How to

## Requirements

- Have AWS SES configured with your domain
- Create a bucket in AWS S3
- Add this policy to the bucket, replace BUCKET_NAME and YOUR_ACCOUNT_ID with yours:

```
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowSESPuts-1501162912388",
"Effect": "Allow",
"Principal": {
"Service": "ses.amazonaws.com"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::BUCKET_NAME/*",
"Condition": {
"StringEquals": {
"aws:Referer": "YOUR_ACCOUNT_ID"
}
}
}
]
}
```

# Configuration

The S3 bucket where AWS SES delivers the emails and the bucket where you want the attachments to be stored in the `config.js` file

# Deployment

## Deploy this serverless function

Execute:

> npm install

> serverless deploy

## Go to AWS SES Management Console and setup a Rule Set

![Management Console Rule Set](https://user-images.githubusercontent.com/82532/136384918-1940c5d8-793f-4cdf-b1f5-69b4a0a1dc82.jpg)