是否可以使用 Amazon EC2 实例作为电子邮件服务器?

发布于 2024-08-13 14:28:15 字数 417 浏览 9 评论 0原文

我希望能够运行 EC2 实例(基于 CentOS LAMP)作为邮件服务器,并在用户注册时为他们创建电子邮件地址,以便他们可以通过电子邮件上传文件。电子邮件将被解析,附件文件将被处理并添加到 S3 进行存储。

这可行吗?

我需要什么邮件包裹? 我希望能够创建电子邮件地址,例如 [电子邮件受保护]

我的域名指向不在亚马逊网络服务上的网络服务器,所以我意识到这可能是不可能的。

我从哪里开始,有没有什么好的资源可以在 EC2 上设置邮件服务器,

非常感谢

I want to be able to run an EC2 instance (CentOS LAMP based) as a mail server and create email addresses for users when they sign up so that they can upload files via email. The emails would be parsed and attached files processed and added to S3 for storage.

Is this feasible?

What mail package would I need for this?
I would like to be able to create email address such as [email protected]

my domainname points to a webserver not on amazon web services so I realise this may not be possible.

where do I start with this, are there any good resources for setting up a mail server on EC2

many thanks

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

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

发布评论

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

评论(3

零度℉ 2024-08-20 14:28:15

回答这个问题,是的,这是可能的。正如 paul 所说,如果您需要 24x7 且长期的服务,那么 EC2 可能比其他一些提供商更昂贵。但如果您是一家初创公司,或者您这样做是为了了解有关这些主题的更多信息,那么这可能是有意义的。

基本步骤是:

  1. 创建一个 Linux EC2 实例 http: //docs.amazonwebservices.com/AWSEC2/2008-02-01/GettingStartedGuide/?ref=get-started
  2. 安装邮件包 http://flurdy.com/docs/postfix/
  3. 更改您的 DNS MX 记录 http://en.wikipedia.org/wiki/MX_record

亚马逊过去在黑名单方面遇到了麻烦..但他们正在努力解决这个问题。请阅读此处:http://developer.amazonwebservices.com/connect/thread.jspa? threadID=37650

编辑:您还可以使用预配置的 CentOS 映像(结合步骤 1+2),该映像已安装 postfix:http://developer.amazonwebservices.com/connect/entry.jspa?externalID=821

To answer the question, yes it is possible. As paul says, if you require 24x7 and long term then EC2 may be more expensive than some other providers. But it can make sense if you're a startup or if you're doing this to learn more about these topics.

Basic steps would be:

  1. Create a linux EC2 Instance http://docs.amazonwebservices.com/AWSEC2/2008-02-01/GettingStartedGuide/?ref=get-started
  2. Install a mail package http://flurdy.com/docs/postfix/
  3. Change your DNS MX record http://en.wikipedia.org/wiki/MX_record

Amazon has had trouble in the past with blacklisting.. but they're trying to address that. Read here: http://developer.amazonwebservices.com/connect/thread.jspa?threadID=37650

Edit: You could also use a pre-configured CentOS image (combining step 1+2), this one has postfix already installed: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=821

池予 2024-08-20 14:28:15

使用 EC2 作为邮件服务器似乎不太适合我。您没有使用“弹性计算云”的“弹性”或“云”部分。您需要的东西必须 24x7 运行,始终具有相同的 IP,并且不需要按需扩展或收缩,因此 VPS 将是更好的解决方案。

Using EC2 as a mail server does not seem like a good fit to me. You're not using either the "Elastic" or the "Cloud" part of the "Elastic Compute Cloud". You need something that has to be up 24x7, has the same IP all the time, and doesn't need to expand or contract on demand, so a VPS would be a better solution.

指尖微凉心微凉 2024-08-20 14:28:15

这可能可以通过使用弹性 IP 以及 ec2 实例上邮件服务器的正确配置来接收邮件来完成。

但是,使用 Google AppEngine 可能会更容易。 You can forward the messages from [email protected] from your existing mail server to您的 appspot 电子邮件地址,然后处理消息并使用 python 中的一些 appengine 代码将文件存储在 S3 上。有关详细信息,请参阅有关接收电子邮件的 appengine 文档:http://code .google.com/appengine/docs/python/mail/overview.html

It can probably be done with the use of an elastic IP along with the correct configuration of the mail server on the ec2 instance to receive mails.

However, it might be easier to use Google AppEngine. You can forward the messages from [email protected] from your existing mail server to your appspot email address, then process the messages and store the files on S3 with a some appengine code in python. See the appengine documentation on receiving email for more information: http://code.google.com/appengine/docs/python/mail/overview.html

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