如何将 Outlook 转发电子邮件发送到 AWS SES

编程入门 行业动态 更新时间:2024-10-10 21:24:09
本文介绍了如何将 Outlook 转发电子邮件发送到 AWS SES的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

每当我在 Outlook 帐户中收到电子邮件时,我都会尝试调用 AWS Lambda 函数.在遵循 AWS 文档时,我发现有两种方法可以发布 MX 记录或明确路由它.就我而言,我已经在 Outlook 和我的私人域之间发布了 MX.所以我在尝试第二种方法.

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 publish the MX record or to explicitly route it. In my case I have already published MX between outlook and my private domain. So I was trying for the second method.

在 Outlook 转发规则中,需要提供什么 SES 地址?是 something@inbound-smtp.us-east-1.amazonaws 还是别的什么

In outlook forwarding rule what SES address needs to be given? Is it something@inbound-smtp.us-east-1.amazonaws or something else

推荐答案

提到的转发规则方法不是类似于标准电子邮件地址转发,您可以在其中配置someone@email 将其所有电子邮件转发/发送到 someone-else@email.

The forwarding rule method mentioned is not similar to standard email address forwarding where you can configure someone@email to have all its emails forwarded/sent to someone-else@email.

相反,它特指一种称为SMTP Relaying的方法.

Instead, it is referring specifically to a method known as SMTP Relaying.

话虽如此,但如果您已成功指向 MX 记录,则无需配置额外的 SMTP 中继.但是,您确实需要在 SES 中创建必要的规则,以便指定域上要为其处理入站电子邮件的特定电子邮件地址.

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.

以下是将传入电子邮件保存到 S3 以供特定 Lambda 函数处理的常见活动规则集配置示例:

  • 规则名称:saveToS3 (您可以任意命名):
    • 选择此规则应适用的电子邮件地址 (recipients).
    • 选择 S3 作为操作类型.
    • 选择/创建用于保存电子邮件的 S3 存储桶.
    • 注意:您也可以使用 SNS 来保存电子邮件.
    • 保存规则.
    • 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.
        • 选择此规则应适用的电子邮件地址(收件人).
        • 选择 Lambda 作为操作类型.
        • 选择在 SES 将电子邮件正文保存到 S3 后要调用的 Lambda 函数(Lambda 不能直接访问电子邮件的正文内容,这就是为什么必须首先将其保存在 S3 或 SNS).
        • 保存规则.
        • 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.
        • 选择此规则应适用的电子邮件地址(收件人).
        • 选择停止规则作为操作类型.
        • 保存规则.

        一旦设置了这些规则,并假设您已正确验证域并正确指向 MX 记录,SES 将开始接收活动规则集中指定的电子邮件地址的所有传入电子邮件.

        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.

        放心请参阅此 AWS 博客文章,了解有关使用 SES 接收电子邮件并使用 Lambda 进行处理的更多信息.

  • 更多推荐

    如何将 Outlook 转发电子邮件发送到 AWS SES

    本文发布于:2023-11-23 20:11:06,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1622742.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:发送到   如何将   电子邮件   SES   Outlook

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!