By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Selective email forwarding from SES to Workmail with Lambda

0

Hello folks,

I am using AWS for several private purposes as well, including workmail. Unfortunately it lacks an important feature that helped me a lot in the past: catchall.
When giving away my email address I have been using partner@domain1.com, where "partner" is the company, club or organisation. Once I start receiving SPAM or unwanted ads I could easily tell who was selling my address or had security issues.

Now I need to become creative. My idea: I am using domain2.com as primary Workmail domain, with something@domain2.com as my primary email address.
Then I want to use SES to trigger a Lambda function whenever an email arrives to any ******@domain1.com address and forward it to something@domain2.com.

Would that be a good practice to go for?

asked 6 years ago556 views
1 Answer
0

Hi,

Thank you for your interest in WorkMail and AWS. For the Catch all feature, I will plus 1 the ticket on your behalf. For the mail filtering on domains, you can assign multiple email aliases to you users. This will allow you to configure @domain2.com as primary email address and configure domain1.com as an alias. Both email addresses will deliver to your mailbox and you can create a mailbox rule to filter messages sent to the aliases.

WorkMail also supports Mail flow rules with Lambda execution, while functionality is limited right now you can configure a lambda to trigger a CloudWatch alarm when a message to domain1.com is received. More information can be found here: https://docs.aws.amazon.com/workmail/latest/adminguide/email-flows.html

I hope these options cover your use case. If you have any more questions, feel free to ask here.

Kind regards,
Robin

AWS
EXPERT
answered 6 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.

Guidelines for Answering Questions