处理发送到特定域的所有电子邮件
要求: 我正在编写一个 Web 应用程序(Rails on Heroku),用户可以通过该应用程序创建组,并且用户应该能够通过向组发送电子邮件来向组发布消息。 这就是 tumblr.com 所做的:每个博客都与一个电子邮件地址(随机生成)相关联,用户只需发送电子邮件即可向博客发布内容。 Posterous.com 也有这个功能。
问题: 构建这样的解决方案的最佳方法是什么?评论?有想法吗?
我看到有两种方法可以做到这一点:
1)在 Amazon EC2 上托管我自己的电子邮件服务器(sendmail 或 postfix)并使用一些脚本来处理所有传入的电子邮件? 这将为我提供很多控制权,但需要维护电子邮件服务器。
2)将电子邮件服务器托管在某处,只需编写电子邮件处理脚本就很好了,但是我不知道有任何电子邮件云服务可以告诉您:“请接受 mydomain.com 的所有电子邮件”。
预先感谢您的任何帮助。
Requirement:
I am writing a web application (Rails on Heroku) through which users can create groups and user should be able to post a message to the group simply by sending an email to the group.
This is what tumblr.com does: each blog is associated with an email address(randomly generated) and user can post to the blog simply by sending an email. Also posterous.com has this feature.
Question:
What is the best way to architect a solution like this one? Comments? Ideas?
I see 2 ways of doing this:
1) Hosting my own email server (sendmail or postfix) on Amazon EC2 and having some script to process all the incoming email?
This will give me a lot of control but an email server to maintain.
2) Have the email server hosted somewhere and just have to write the email processing script would be nice however I do not know of any email cloud service to which you can tell: "please accept all the email for mydomain.com".
Thanks in advance for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想我会选择 http://cloudmailin.com。他们甚至还有一个不错的 Heroku 插件。很高兴听到尝试过此方法的人的任何好或坏的经历。
I think I am going to go with http://cloudmailin.com. They even have a nice Heroku plug-in. It would be nice to hear any good or bad experience from somebody that tried this out.
您可以通过 SMTP 服务器将电子邮件发送到 GMail,然后运行某种 crontab 从 GMail 中提取电子邮件,并从那里处理它们。
它们确实允许您将电子邮件发送到您的domain.com,请参阅此页面:
http://www.google.com/apps/intl/en/group/index.html
You could have the emails sent to GMail through their SMTP servers and run some sort of crontab to pull down the emails from GMail, and process them from there.
They do allow you to have emails sent to your domain.com, see this page:
http://www.google.com/apps/intl/en/group/index.html