How to make outlook forward email to AWS SES

前端 未结 1 502
借酒劲吻你
借酒劲吻你 2021-01-26 21:00

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

相关标签:
1条回答
  • 2021-01-26 21:22

    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:

    1. Rule Name: saveToS3 (you can name it anything):
      • Choose the email addresses (recipients) this rule should apply to.
      • Select S3 as the Action Type.
      • Choose/Create the S3 Bucket to Save the Email Messages to.
      • Note: You can alternatively use SNS to save the email messages in.
      • Save Rule.
    2. Rule Name: invokeLambda (you can name it anything):
      • Choose the email addresses (recipients) this rule should apply to.
      • Select Lambda as the Action Type.
      • Choose the Lambda function to be invoked after SES has saved the email body to S3 (Lambda cannot directly access the body content of the email, this is why it must first be saved in either S3 OR SNS).
      • Save Rule.
    3. Rule Name: EndRuleFlow (you can name it anything):
      • Choose the email addresses (recipients) this rule should apply to.
      • Select Stop Rule as the Action Type.
      • Save Rule.

    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.

    0 讨论(0)
提交回复
热议问题