通过 SMTP 进行文件分发:接收方怎么做?

发布于 2024-09-10 07:06:00 字数 495 浏览 8 评论 0原文

我需要在 WAN 的不同站点之间设置文件分发系统。放入源计算机上某些输入目录中的文件应分发到其他站点的每台目标计算机上的目录中。要求之一是某些站点之间唯一允许的流量是 SMTP。已经有一个守护进程通过轮询输入目录并将所有找到的文件作为附件邮寄到配置的地址(最初被认为是针对人类收件人)来覆盖发送方。

您将如何设计接收端?

  • 人们可以编写一个精简的 SMTP 服务器,仅处理这一种情况,从传入邮件中删除附件,并将它们放入本地目录中。
  • 人们可以设置一个具有本地传递功能的完整邮件服务器,轮询用户的收件箱并尝试从那里提取文件。
  • 人们可以使用配置或 procmail 设置完整的邮件服务器,以将附件直接提取到目录中。

我不太喜欢这些建议,因为它们都比设置 SSH 或 FTP 服务器更复杂。此外,我没有设置和管理邮件服务器的经验。

您有什么建议或经验可以分享吗?

目标系统是 Linux/Unix,但如果你知道一些独立于平台的东西,我也想听听。

I need to setup a file distribution system between different sites of a WAN. Files that are dropped into some input directories on the source machine should be distributed into a directory on each of the target machines at other sites. One of the requirements is that between certain sites the only allowed traffic is SMTP. There is already a daemon in place that covers the sending side by polling input directories and mailing all found files as attachments to configured addresses (was thought for human recipients originally).

How would you design the receiving side?

  • One could write a stripped down SMTP server that handles only this one case, strips attachments from incoming mails, and puts them into a local directory.
  • One could setup a full mail server with local delivery, poll the user’s inbox and try to extract files from there.
  • One could setup a full mail server with a configuration or procmail to directly extract attachments into a directory.

I don’t really like any of these proposals because they are all more involved than setting up a SSH or FTP server. Also I don’t have experience with setting up and administrating mail servers.

Do you have suggestions or experiences to share?

The target system is Linux/Unix, but if you know something platform independent I’d like to hear, too.

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

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

发布评论

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

评论(1

旧人 2024-09-17 07:06:00

最合适的方法是设置支持 SMTP 的 ESB,例如 ServiceMixMule。 Mule 上手更直接。

The most suitable way is to set up an ESB with SMTP support, like ServiceMix or Mule. Mule is more straight-forward to get started with.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文