A Serverless Service for setting up an email forwarding app using AWS Simple Email Service and Lambda. You can configure the service to forward by email address, as well as by domain/wildcard/catchall.
Under the hood, this app uses arithmetric's fantastic aws-lambda-ses-forwarder.
- Setup your AWS Credentials
- Install Serverless.js
npm install -g serverless
- Install this Service
serverless install --url https://github.com/tonycapone/serverless-ses-forwarder
cd serverless-ses-forwarder
npm install
-
Configure the Lambda Function
Edit
config.yml
. This file contains the rules for forwarding emails, as well as more fine grained options. It directly maps to the config object in aws-lambda-ses-forwarder, so see that project for all the available options. -
Deploy it
serverless deploy
-
Configure SES
Once the stack is stood up, you will need to set-up AWS SES to route incoming emails to your Lambda function. Regretfully, this is a manual step until such time as Amazon provides CloudFormation support for SES.
Follow steps 3-6 in the aws-lambda-ses-forwarder README.