I am trying to invoke AWS Lambda function whenever I recieve an email in my outlook account. While following AWS documentation I found there are two ways to do so either to publ
The forwarding rule method mentioned is not similar to standard email address forwarding where you can configure someone@email.com to have all its emails forwarded/sent to someone-else@email.com.
Instead, it is referring specifically to a method known as SMTP Relaying
.
That said though, if you have successfully pointed the MX record, then you do not need to configure an additional SMTP Relay. You do, however, need to create necessary rules in SES in order to specify the specific email addresses on the domain that you wish to process inbound email for.
Below is an example of a common Active Rule Set configuration that saves the incoming email to S3 to be processed by a specific Lambda function:
(recipients)
this rule should apply to. S3
as the Action Type.(recipients)
this rule should apply to.Lambda
as the Action Type.(recipients)
this rule should apply to.Stop Rule
as the Action Type.Once these rules are set, and assuming that you have correctly verified the domain and properly pointed the MX records, SES will begin receiving all incoming email for the email addresses specified in the active rule set.
Feel free to refer to this AWS Blog Post for more information on receiving email with SES and processing it with Lambda.