是否可以使用 Amazon EC2 实例作为电子邮件服务器?
我希望能够运行 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
回答这个问题,是的,这是可能的。正如 paul 所说,如果您需要 24x7 且长期的服务,那么 EC2 可能比其他一些提供商更昂贵。但如果您是一家初创公司,或者您这样做是为了了解有关这些主题的更多信息,那么这可能是有意义的。
基本步骤是:
亚马逊过去在黑名单方面遇到了麻烦..但他们正在努力解决这个问题。请阅读此处: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:
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
使用 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.
这可能可以通过使用弹性 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