带有 SES 和附件的后缀配置

发布于 2024-11-01 18:38:46 字数 366 浏览 2 评论 0原文

背景:我有一个 Rails 应用程序,可以发送事务和通知电子邮件。 1/20 电子邮件需要有附件。 我正在使用 postfix,只需设置 Amazon Simple Email Service 来处理外发电子邮件。

我的理解是,Amazon SES 目前不支持发送带附件的电子邮件。

在 postfix SES 当前设置为 default_transport。理想情况下,我想将其配置为使用 SES 发送不带附件的电子邮件,并使用不使用 SES 发送带附件的电子邮件(因为 SES 无论如何都会拒绝它们)。

这可能吗?

如果 postfix 不支持这种设置,我如何让我的 Rails 应用程序使用 SES 发送没有附件的电子邮件,而没有它的其他电子邮件?

Background: I've a rails app that sends out transactional and notification emails. 1/20 emails needs to have an attachment.
I'm using postfix, and just setup Amazon Simple Email Service to handle outgoing email.

My understanding is that Amazon SES doesn't currently support sending emails with attachments.

In postfix SES is currently setup as default_transport. Ideally, I'd like to configure it to send out using SES for emails without attachments, and send email without SES for emails with attachments (since SES will reject them anyway).

Is this possible?

If postfix doesn't support this kind of setup, how would I get my rails app to send out emails without attachments using SES and other email without it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

孤芳又自赏 2024-11-08 18:38:46

Amazon SES 现已支持附件

Amazon SES now supports attachments.

攒眉千度 2024-11-08 18:38:46

这个问题近一个月前就被问到了,请问您的问题找到解决方案了吗?

我认为像你所说的那样配置Postfix会很困难,我建议两种选择:

  • 配置Postfix以正常发送电子邮件,在这种情况下你将能够发送附件。 (你根本不会使用SES)。
  • 保留您的 Postfix 配置不变,您可以将文件上传到某个位置(可能在 S3 上,因为您使用的是 AWS),而不是使用附件,然后在电子邮件中发布链接。 (您只能使用 SES)。

This question was asked nearly a month ago, did you find a solution to your problem?

I think it would be difficult to configure Postfix as you say, I'd suggest two alternatives:

  • configure Postfix to deliver the emails normally, in this case you'll be able to send attachments. (You'd not use SES at all).
  • leave your Postfix configuration as is, and instead of using attachments you can upload the file somewhere (maybe on S3 since you're using AWS) and post the link in the email. (You'd use only SES).
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文