[英]aws ses inbound e-mail to S3 and SNS topic
It might not be the best question but I am really lost here 这可能不是最好的问题,但是我真的在这里迷路了
I am in the EU(Ireland) zone. 我在欧盟(爱尔兰)地区。 I want to configure aws ses to receive my e-mails and forward them to an SNS topic and save them in an S3 bucket.
我想配置aws ses来接收我的电子邮件,并将它们转发到SNS主题,然后将它们保存在S3存储桶中。 I use route53 as my nameserver.
我使用route53作为我的名称服务器。
What I did so far 我到目前为止所做的
When I send an e-mail to user86@example.com nothing happens. 当我发送电子邮件至user86@example.com时,什么都没有发生。 No mail in S3 nor SNS message.
S3中没有邮件,也没有SNS消息。 If I change the recipients to info@example.com and send the mail to user86@example.com then the mail bounces.
如果我将收件人更改为info@example.com,然后将邮件发送至user86@example.com,则邮件会退回。
I tested the smtp with msmtp and outlook and it works fine so the SES is capable of receiving my e-mails on smtp level but it seems that after smtp did it's part everything goes to /dev/null and the e-mails do not reach the rule sets. 我用msmtp和Outlook测试了smtp,它工作正常,因此SES能够在smtp级别上接收我的电子邮件,但似乎在smtp完成之后,一切都变成了/ dev / null,并且电子邮件没有到达规则集。 Nothing comes to the admin topic.
管理员主题一无所获。 In the cloudWatch I should have an SES metric but I have none.
在cloudWatch中,我应该有一个SES指标,但没有。
Any idea ? 任何想法 ? I am really stuck :(
我真的被卡住了:(
Final answer capturing all the comments above: 最终答案包含了以上所有评论:
You normally use SES to send emails. 通常,您使用SES发送电子邮件。 When sending email it's the Amazon AWS SES email servers that are used.
发送电子邮件时,使用的是Amazon AWS SES电子邮件服务器。
When receiving emails you are using whatever server you have configured as your email server for the domain. 接收电子邮件时,您使用的是配置为域的电子邮件服务器的任何服务器。 This means that in your setup for incoming e-mails they don't go through SES.
这意味着在您设置的传入电子邮件中,它们不会通过SES。
To make them go through SES and implicitly have the rule you've configured above fire, you need to point the DNS MX record for your domain to the SES endpoint in the region you want to use to receive emails. 为了使它们通过SES并隐式地具有您在火灾中配置的规则,您需要将域的DNS MX记录指向要用于接收电子邮件的区域中的SES终结点。
See: https://aws.amazon.com/blogs/aws/new-receive-and-process-incoming-email-with-amazon-ses/ 参见: https : //aws.amazon.com/blogs/aws/new-receive-and-process-incoming-email-with-amazon-ses/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.