Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create SES topic for bounced emails #1

Closed
nelsonic opened this issue Aug 21, 2016 · 5 comments
Closed

Create SES topic for bounced emails #1

nelsonic opened this issue Aug 21, 2016 · 5 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented Aug 21, 2016

Our mission is to create an SNS topic to "listen" for Bounce emails
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-sns-notifications.html

@nelsonic nelsonic changed the title Create Lambda Function that requests SES stats using AWS SDK Create SES topic for bounced emails Aug 21, 2016
@nelsonic nelsonic added this to To do in dwyl app via automation Feb 15, 2020
@nelsonic nelsonic added the T1h label Feb 15, 2020
@nelsonic
Copy link
Member Author

Once you have deployed the aws-ses-lambda function, visit it's configuration page:
https://eu-west-1.console.aws.amazon.com/lambda/home?region=eu-west-1#/functions/aws-ses-lambda-v1
Click on + Add trigger:
aws-ses-lambda-configure-1

Search for SNS in the available triggers:
add-trigger-sns

Once you have selected the SNS topic, click on the Add button:
create-trigger-sns

@nelsonic nelsonic added T2h and removed T1h labels Feb 29, 2020
@nelsonic nelsonic self-assigned this Feb 29, 2020
@nelsonic nelsonic moved this from To do to In progress in dwyl app Feb 29, 2020
@nelsonic
Copy link
Member Author

Visit the AWS Simple Notifications Service (SNS) home page and create a new topic:
new-sns-topic

We called ours SESNotifications and then clicked Next step.
You will see a page where you can configure your SNS topic:
create-sns-topic-1

Ignore all the optional configurations and just scroll to the bottom of the page and click Create topic:
create-sns-topic-2

You will then see a confirmation page saying your topic was created successfully:

ses-topic-created

On this page, scroll till you find the Create subscription button: (Click it)
sns-create-subscription

Once you have selected/input the relevant data, click the Create subscription button
aws-sns-create-subscription

You should see a confirmation that your subscription was created successfully:
sesnotifications-subscription-created

@nelsonic
Copy link
Member Author

Once you have created the SNS Topic, visit the SES home page and click on Email Addresses:
https://eu-west-1.console.aws.amazon.com/ses/home?region=eu-west-1
aws-ses-console-home

Click on the verified email address you want to configure SNS notifications for:
aws-ses-email-address-no-topics

In the Notifications section, click on Edit configuration:
aws-ses-edit-configuration

Select the SNS topic we created above for all the types of notification then click Save Config:
aws-ses-sns-notifications-edit-configuration

Your configuration should now look something like this:
aws-ses-sns-notificaitons-updated

@nelsonic
Copy link
Member Author

Configure a bounce event to an email address you know does not exist:

configure-bounce-test-event

Run the bounce event in the Lambda console:

lambda-bounce-test

You will see a "success" message confirming that the aws-ses-lambda attempted to send the email to the bounce@dwyl.com address (which we know will fail). Our lambda function and AWS SES does not know that the bounce@dwyl.com address will bounce. That's the reason we need to have the SNS topic so we can monitor bounce events!

The SNS bounce notification event is saved to S3 thanks to #12
https://ademoapp.s3-eu-west-1.amazonaws.com/event.json
bounce-event-saved

Now we can parse the notification!

@nelsonic
Copy link
Member Author

The detailed step-by-step instructions for are included in #4
See: https://github.com/dwyl/aws-ses-lambda/blob/9ad2381bda7a2f35049732569af055ff80e167d2/SETUP.md

🚀

dwyl app automation moved this from In progress to Done Feb 29, 2020
nelsonic added a commit that referenced this issue Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
dwyl app
  
Done
Development

No branches or pull requests

1 participant