Skip to content

Setting the SES rule for email forwarding

Kenan Scott edited this page Dec 14, 2017 · 3 revisions

Your SES account must be out of the sandbox in order to complete these steps.

  1. Go to the AWS SES console webpage, ensure that the region is correct. Each domain that will be used must be verified under Domains on the left side.
  2. Click on Rule Sets on the left side. Create a rule set if there is not already one, and then View Active Rule Set.
  3. Create Rule, add a recipient for each fromAddress set in template-map.json. Click Next Step.
  4. Add an action for S3, set the bucket to the same value as EmailBucket, leave the key blank so that the email is saved to the root of the bucket.
  5. Add another action for Lambda, set it to the ReplyFunction that was created by CloudFormation and Invocation type to event. Click Next Step.
  6. Set Rule name to something descriptive, check Enable and Enable spam and virus scanning. Make sure that it is set to save to the correct Rule set. Ensure that the order makes sense in combination with any other rules in the set.
  7. Press Next Step, review and then click Create rule.

Now, when an email is sent to one a fromAddress (for example, in reply to a commitment email), the email is saved to S3, Lambda gets that email and then forwards it to ForwardAddress.

Clone this wiki locally