How to setup email receiving?

0

I am trying to setup the email receiving, what will be the best doc I can follow? When I used inbound-smtp.us-west-1.amazonaws.com Email return and say no mailbox found.

Kevin

asked 17 days ago44 views
3 Answers
0

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:

  1. First, ensure that your AWS account is in a region that supports email receiving. Not all AWS regions support this feature.

  2. Verify your domain with Amazon SES. This proves that you own the domain.

  3. 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.

  4. Grant necessary permissions to Amazon SES to access other AWS resources for email receiving.

  5. Create a receipt rule set in Amazon SES.

  6. Set up receipt rules to determine how to handle incoming emails. For example, you can configure rules to save emails to an S3 bucket.

  7. 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

profile picture
answered 17 days ago
  • Thanks for your help. What if I want to forward email from inbound to my ec2 instance? What should I do?

0

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

profile picture
answered 17 days ago
0

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.

profile picture
answered 15 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions