- Newest
- Most votes
- Most comments
Hi hansaworld,
I think Amazon SES would work for your use case.
When you set up email receiving in Amazon SES, you have to do two things. First, you have to verify the domain that will be receiving email. For more information, see https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-domain-procedure.html.
Next, you have to create receipt rules that define how your incoming mail should be handled. For more information, see https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html and https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html.
When you create a receipt rule, the first thing that you have to do is specify the recipients that the rule applies to. This could be an entire domain or subdomain, or an email address or list of addresses.
Next, you specify what should be done with messages that are sent to those recipients. For example, you can send the email to an S3 bucket, send a bounce notification to the sender, or send the email to Lambda for additional processing.
In your case, I recommend that you create separate receipt rules for each mailbox. You can use the CreateReceiptRule API to automate this (see https://docs.aws.amazon.com/ses/latest/APIReference/API_CreateReceiptRule.html).
Then, when you need to decommission the email address, use the DeleteReceiptRule API (https://docs.aws.amazon.com/ses/latest/APIReference/API_DeleteReceiptRule.html) to remove the receipt rule for that address.
When Amazon SES receives an incoming email, but no receipt rules apply to it, the email automatically bounces back to the sender.
I hope this helps! Let me know if I can answer any additional questions.
Thanks,
Brent @ AWS
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 13 days ago
- AWS OFFICIALUpdated 2 years ago
- What happens to Amazon RDS and Amazon Redshift queries that are running during a maintenance window?AWS OFFICIALUpdated 9 months ago