Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Relay emails from AWS SES

License

NotificationsYou must be signed in to change notification settings

kdcio/aws-ses-email-relay

Repository files navigation

Receive email from AWS SES then relay it to your desired destination.

WARNING: Currently this does not work with attachments.

Install

git clone https://github.com/kdcio/aws-ses-email-relay.gitcd aws-ses-email-relaynpm inpm i serverless -g

USAGE

Create config file

Create aconfig.{name}.yml in the project root. Replace{name} with your deployment name. eg.prod

config.prod.yml:

REGION:us-east-1PROFILE:my-aws-profileDESTINATION:"my.yahoo@receiving-email.com":my.admin@yahoo.com"my.gmail@receiving-email.com":my.admin@gmail.com"default":    -my.admin@gmail.com    -my.admin@yahoo.comFROM:my@receiving-email.com

DESTINATION is a mapping of recepient email to destination email. The destination email can be an array.default is a catch all destination.

FROM should be a fallback email address capable of sending emails via your AWS account.

Deploy to AWS

Based on config above:

npm run deploy prod

Set SES Rule Sets

Navigate to your SES Rule Sets in AWS Console. In you rule, select SNS. Then SNS topic as aws-ses-email-relay-prod. HitSave Rule and you should ready to go.

Uninstall

npm run remove prodcd ..rm -fR aws-ses-email-relay

[8]ページ先頭

©2009-2025 Movatter.jp