Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement inbound email on Amazon AWS?

I'm relatively new to AWS, but I am trying to figure out how to get AWS to receive emails. According this post How to configure email accounts like [email protected] or [email protected] on AWS SES only handles outbound email.

What I am hoping to achieve is the ability to filter aliases. For example, if the alias is "xyz12alias", then any email sent to "[email protected]", can see the email and process the content appropriately. Which in my case will be storing it in account associated with the filter.

Can anybody direct me to a strategy or service within AWS that would allow me to implement inbound email on Amazon AWS?

https://postmarkapp.com/inbound appears to give me what I want, but is there anything within the AWS framework itself? Are there alternate services to postmarkapp?

Thanks.

like image 839
Elenesski Avatar asked Nov 25 '13 22:11

Elenesski


People also ask

Can I host an email server in AWS?

Create your AWS instance. For simplicity, this tutorial will assume that you are using Amazon Web Services (AWS) as the hosting platform for your email server. However, it's possible to set up a similar mail server on any other dedicated server if you have full root access to it.

Can AWS SNS receive email?

The Amazon SNS topic you choose must be in the same AWS region as the Amazon SES endpoint you use to receive email. Encoding—The encoding to use for the email within the Amazon SNS notification.

Which AWS service can be used to send emails?

Amazon Simple Email Service (SES) is a cost-effective email service built on the reliable and scalable infrastructure that Amazon.com developed to serve its own customer base. With Amazon SES, you can send transactional email, marketing messages, or any other type of high-quality content to your customers.


1 Answers

Amazon Simple Email Service just introduced incoming e-mail support:

https://aws.amazon.com/about-aws/whats-new/2015/09/amazon-ses-now-supports-inbound-email/

In addition to offering a scalable, cost-effective email-sending platform, Amazon SES can now accept your incoming emails. You can configure Amazon SES to deliver your messages to an Amazon S3 bucket, call your custom code via an AWS Lambda function, or publish notifications to Amazon SNS. You can also configure Amazon SES to drop or bounce messages you do not want to receive. If you choose to store your messages in Amazon S3, Amazon SES can encrypt your mail using AWS Key Management Service (KMS) before writing it to the bucket.

You configure all of these actions by defining receipt rules, which you set up by using the Amazon SES console or the Amazon SES API. Receipt rules enable a single message to trigger multiple actions. Your rules can be as broad or as specific as you choose because you can configure them to apply to specific email addresses or entire domains.

You can also use receipt rules to control which messages Amazon SES can accept on your behalf. Another filtering method is to set up custom IP address block lists and allow lists. If you know that you don’t want to receive mail originating from a particular IP address range, simply add it to your account's IP address block list. You can also override block lists by adding IP address ranges to your allow list, which provides fine-grained control over your inbound email traffic.

like image 76
pako Avatar answered Sep 27 '22 22:09

pako