How to receive email with Amazon SES and read it in an inbox
Updated 5 min read
Connect your Amazon SES account to HelloBox and it sets up receiving for you, then shows the mail as threaded conversations your team can answer. It's free for one-person teams. HelloBox creates the bucket, receipt rule and notifications in your own AWS account through one CloudFormation stack. By hand, you verify your domain in SES, add the MX record 10 inbound-smtp.<region>.amazonaws.com in a region that supports receiving, and add a receipt rule that saves each message to S3, optionally with an SNS notification. That gets you raw MIME files, not mail you can read.
- Someone writes to [email protected]
- Your MX record10 inbound-smtp.<region>.amazonaws.com
- SES receipt rulein the active rule set
- S3 bucket, SNS noticea raw MIME file per message
On your own
Parse the MIME, thread it and build a way to reply.
With HelloBox
One CloudFormation stack, then threaded mail your team can answer.
On this page
What SES does with incoming mail
Receiving starts with an MX record that points your domain at SES. SES then checks each message against your receipt rules: a rule lists the recipients it applies to (a domain, a subdomain or an address on a verified domain) and up to 10 actions to run in order. Rules live in a rule set, and while you can create several, only one is active at a time. (AWS: receiving concepts)
| Action | What it does | Limit |
|---|---|---|
| Deliver to S3 | Saves the raw, unmodified MIME message to a bucket, optionally notifying an SNS topic | Messages up to 40 MB, headers included |
| Publish to SNS | Puts the whole message inside the SNS notification | Up to 150 KB; larger messages bounce |
| Invoke Lambda | Runs a function with the message's metadata and headers, not its body | 30-second timeout when run synchronously |
| Bounce, add header, stop | Rejects the message, adds a header, or stops later rules running | |
| WorkMail | Hands the message to Amazon WorkMail |
SES also checks SPF, DKIM and DMARC and can scan for spam and viruses, adding headers like X-SES-Spam-Verdict. It doesn't act on those results itself: what to do with a failing message is up to you. (AWS: S3 action, SNS action, Lambda action)
Set up SES receiving by hand
Pick a region that supports receiving. AWS lists them under Email Receiving endpoints; GovCloud doesn't receive mail. Then:
- 1Verify the domain as an identity in the SES console and add its DKIM records.
- 2Create an S3 bucket in the same region, with a policy that lets
ses.amazonaws.comput objects, limited to your account. - 3Create a receipt rule set and make it active, or use the one that's already active.
- 4Add a receipt rule for your domain with an S3 action. Add an SNS topic to the action if your app needs to know when mail arrives.
- 5Add the MX record for the domain, with your region in place of
us-east-1. - 6Send a test message and check that a new object appears in the bucket.
acme.com. MX 10 inbound-smtp.us-east-1.amazonaws.com{
"Effect": "Allow",
"Principal": { "Service": "ses.amazonaws.com" },
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::acme-inbound/*",
"Condition": { "StringEquals": { "AWS:SourceAccount": "111122223333" } }
}If the domain already receives mail somewhere else, such as Google Workspace, don't change its MX record. Receive on a subdomain like reply.acme.com instead; where replies to transactional emails go shows the records. (AWS: MX record, permissions)
The parts people end up building
At this point you have a bucket of .eml files. Reading them is the next problem, and it usually turns into one of these:
- A Lambda function that forwards to Gmail or Google Workspace. SES only sends from identities you've verified, so the function has to rewrite
Fromto your own domain and put the original sender inReply-To. Attachments, large messages and bounces are all your code's job. - Reading raw files in S3, or a small script that downloads and parses them. Fine for one person checking now and then.
- A webhook into your own app through SNS or Lambda, which then has to parse MIME, thread replies, store attachments safely and clean up the bucket.
Forwarding is what most teams do, and it holds up until several people answer the same address, or until you want support@ threaded with your app data. Then you need an inbox that understands conversations, not a pile of forwarded copies.
How HelloBox sets it up for you
- 1In HelloBox, choose Connect Amazon SES and pick your region.
- 2Press Open AWS, then Create stack. The stack creates one IAM role that only HelloBox can use, tied to an external ID for your connection. HelloBox never sees your AWS keys.
- 3Turn receiving on for a domain. Through that role, HelloBox creates the bucket with a policy limited to your account, an SNS topic, and a receipt rule with spam and virus scanning in your active rule set (or a new one if none is active).
- 4HelloBox adds the MX record if the domain's DNS is in Route 53 or Cloudflare. Otherwise it shows you the exact record to add.
When mail arrives, the SNS notification tells HelloBox, which copies the message, threads it into a conversation and deletes it from the bucket. A lifecycle rule removes anything left behind after a day. Replies go out through your own SES account from the same address. Deleting the stack ends HelloBox's access.
Receiving works while your account is still in the sandbox. To reply to people outside it, you need production access: see how to get SES production access.
Questions people ask
Can Amazon SES receive email?
Yes, in the regions AWS lists under Email Receiving endpoints. You add an MX record pointing to SES and receipt rules that store or pass on each message. SES has no inbox to read it in; HelloBox adds one.
What MX record does Amazon SES use?
10 inbound-smtp.<region>.amazonaws.com, for example 10 inbound-smtp.us-east-1.amazonaws.com, in the region where you set up receiving.
Why do large emails bounce with the SNS action?
The SNS action carries the whole message inside the notification, which is limited to 150 KB. Save mail to S3 instead, which takes messages up to 40 MB, and use SNS only to be notified.
Does the SES Lambda action get the email body?
No. Lambda receives the message's metadata and headers. Save the message to S3 with an S3 action first, then read it from the bucket in your function.
Can I receive with SES without touching my main domain's MX?
Yes. Verify and receive on a subdomain such as reply.acme.com, and set Reply-To on your emails to an address there.
