Giter Site home page Giter Site logo

sjlu / aws-ses-simple-mail-forward Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sirceljm/aws-ses-simple-mail-forward

0.0 2.0 0.0 4 KB

AWS Lambda function that forwards emails from SES email receiving to your email address

JavaScript 100.00%

aws-ses-simple-mail-forward's Introduction

AWS-SES-simple-mail-forward

If you are starting a new project in AWS it is sometimes necessary to have a working email (to validate certificates from ACM for example). You can set your MX records to one of external mail hosting services but the option for custom domains is usually not free or with limited features.

Other option is to set AWS SES Email receiving rule.

How to

  • Set up SNS

    • SNS > Create topic > Enter "email-forwarding" or name of your choice for topic name
  • Set up SES

  • SES > Email receiving > Rule Sets > Create rule set (or "View Active Rule Set" if you already have one in place)

  • Enter name for your rule set > "Create a Rule Set"

  • Click on your rule set > Create Rule

  • Enter your email address or string that matches many addresses (instructions are on that page) > Add recipient email

  • Click on "Verify domain" > AWS will ask you to make changes in Route53 > Next Step

  • Add action > Select SNS > select your SNS topic that you created earlier

  • Encoding > UTF-8

  • Next step

  • Rule name "forward-email" or name of your choice

  • Next step > Create Rule

  • Make your lambda function

    • Lambda > Create Lambda Function > Blank Function > Next
    • Select SNS trigger (click on dashed square left of Lambda icon) > select SNS
    • SNS topic > select your SNS topic that you created earlier
    • Check Enable trigger
    • Name it SES_Email_Forward or name of your choice
    • Runtime Node 4.3
    • Copy the code from mail_forward.js to lambda function code
    • Set environment variable fwd_address to email address that you want your emails forwarded to
    • Handler should be index.handler
    • Role: create custom role > new page will open
      • IAM Role > Create a new IAM Role
      • Role name > lambda_email_forward or enter name of your choice
      • View Policy Document > Edit
      • Copy and replace existing JSON with JSON from mail_forward_policy.json
      • Allow
    • Next > Create function

aws-ses-simple-mail-forward's People

Contributors

sirceljm avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.