Skip to content

E-Mails delivered to multiple accounts

0

Hello AWS Community,

I am noticing the following issue. I have two separate accounts (DEV&PROD).

PROD contains Amazon SES identities as well as mx-entries for domains:

  • application-test.de
  • prod.application-test.de
  • dev.application-test.de (only Route53 NS-Entry to other account)

DEV contains Amazon SES identities as well as mx-entries for domain:

  • dev.application-test.de

Now when i send a mail to ...@dev.application-test.de it is received on the PROD and DEV account. I would expect it to be delivered only into the DEV-Account.

Is this an expected behaviour or even a bug? If no, it would be a security issue for me...

Kind Regards Moritz

asked 2 years ago308 views

2 Answers
0

The ai generated answer does not help, since all MX-entries resolve to: inbound-smtp.eu-central-1.amazonaws.com

answered 2 years ago

-2

The issue you're experiencing is likely due to the configuration of your MX (Mail Exchanger) records and how email routing works. Even though you have separate accounts for DEV and PROD, the email routing is determined by the MX records for each domain.

In your case, it appears that the MX records for "dev.application-test.de" might be pointing to the PROD account's SES setup, rather than the DEV account. This is why emails sent to "dev.application-test.de" are being received in the PROD account.

To resolve this issue:

  1. Check the MX records for "dev.application-test.de" in your DNS settings. Make sure they are pointing to the correct SES inbound SMTP server for your DEV account's region.

  2. Verify that the DEV account has the correct receipt rules set up in Amazon SES to handle incoming emails for the "dev.application-test.de" domain.

  3. Ensure that the NS (Name Server) records for "dev.application-test.de" in the PROD account's Route 53 are correctly pointing to the DEV account's name servers.

  4. In the DEV account, confirm that you have properly verified the "dev.application-test.de" domain in Amazon SES and set up the necessary DNS records (including MX records) for email receiving.

  5. After making any changes to DNS records, allow time for propagation, which can take up to 24-48 hours in some cases.

If you've verified all these settings and are still experiencing issues, you may want to use DNS lookup tools to double-check the MX records for "dev.application-test.de" and ensure they are resolving to the correct SES endpoints for your DEV account.

Remember, email delivery is based on the MX records of the recipient's domain, not on the AWS account structure. So, it's crucial to have the correct MX records in place for each domain in its respective account.
Sources
How to configure two different email servers (MX)? | AWS re:Post
Emails not recieving to the sender domain in my PROD Amazon SES | AWS re:Post

answered 2 years 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.