- Newest
- Most votes
- Most comments
To set up email receiving with Amazon SES (Simple Email Service), you'll need to follow a series of steps. Based on your question, it seems you're encountering some issues. Here's a guide to help you set up email receiving correctly:
-
First, ensure that your AWS account is in a region that supports email receiving. Not all AWS regions support this feature.
-
Verify your domain with Amazon SES. This proves that you own the domain.
-
Publish an MX (Mail Exchanger) record for your domain. The MX record should point to the correct Amazon SES endpoint for your region. The format you used (inbound-smtp.us-west-1.amazonaws.com) looks correct, but make sure it matches your actual region.
-
Grant necessary permissions to Amazon SES to access other AWS resources for email receiving.
-
Create a receipt rule set in Amazon SES.
-
Set up receipt rules to determine how to handle incoming emails. For example, you can configure rules to save emails to an S3 bucket.
-
Optionally, create IP address filters to block or allow emails from specific IP addresses.
The error message you're receiving ("no mailbox found") suggests that there might be an issue with your DNS configuration or the receipt rules. Double-check that your MX record is correctly set up in your DNS settings and that you have created appropriate receipt rules in Amazon SES.
For a comprehensive guide, you can follow the "Getting started receiving email with Amazon SES" tutorial in the AWS documentation. This walks you through the entire process, including verifying your domain, setting up a receipt rule, sending a test email, and viewing the received email.
If you continue to experience issues, verify that all steps have been completed correctly and consider reaching out to AWS support for further assistance.
Sources
Setting up Amazon SES email receiving - Amazon Simple Email Service
Getting started receiving email with Amazon SES - Amazon Simple Email Service
Email receiving with Amazon SES - Amazon Simple Email Service
SES received the email, but it didn’t find any rule to process that recipient.
Follow these steps:
Confirm the domain: Verify that the domain you are using (e.g., seudominio.com) is verified in Amazon SES.
Configure the domain's MX record: It should point to:
Copiar / Editar inbound-smtp.us-west-1.amazonaws.com Create a receipt rule set in SES:
Go to Email Receiving > Rule Sets
Create a new rule
In the "Recipients" field, specify the email or domain that should be accepted (e.g., @seudominio.com)
Choose an action, such as saving emails to an S3 bucket
Save and activate the rule set
Without this rule, SES doesn’t process the received emails, which is why you're seeing the error message.
For detailed instructions, follow the official documentation: https://docs.aws.amazon.com/ses/latest/dg/receiving-email.html
To forward emails received by Amazon SES to an EC2 instance, you need to configure a custom action in the SES receipt rule set. This involves setting up SES to call a service you can host on your EC2 instance, such as an API or an email server.
Here are the steps to do that:
Verify the domain: Ensure that the domain is verified in Amazon SES.
Configure the MX domain record: The domain's MX record should point to the SES receiving endpoint, like: inbound-smtp.us-west-1.amazonaws.com.
Create the rule set in SES:
Navigate to Email Receiving > Rule Sets.
Create a receipt rule:
When creating the new rule, in Recipients, specify the email or domain you want to accept (e.g., @yourdomain.com).
Choose the "SQS" action depending on how you prefer to forward emails to your EC2 instance.
Using SQS:
Alternatively, you can send emails to an SQS queue and then use a service running on your EC2 instance to process and forward the emails from the queue.
EC2 Instance Configuration:
If you use SQS, the EC2 instance can be configured to fetch messages from the SQS queue and process them as needed (e.g., forwarding the email to another destination or processing the content).
Activate the rule set:
After configuring the rules, save and activate the receipt rule set so SES starts processing received emails according to your settings.
Relevant content
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
Thanks for your help. What if I want to forward email from inbound to my ec2 instance? What should I do?