0

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.

Matteo Melani
  • 2,706
  • 2
  • 24
  • 30

2 Answers2

1

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.

Matteo Melani
  • 2,706
  • 2
  • 24
  • 30
  • 1
    As one of the founders of cloudmailin if you have anything you need that we don't provide then contact us! We're doing everything we can to solve the incoming email pain point and we hope we've come up with a decent solution but we're continually trying to make it better! – Steve Smith Mar 24 '11 at 11:23
0

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

Mike Lewis
  • 63,433
  • 20
  • 141
  • 111
  • Yes. That was my first idea. The problem is that **as far as I know** you cannot tell to gmail: "just forward me all the email you get for mydomain.com". My web app creates new email accounts continuously so what you are proposing will not scale financially (Also I am not sure yu can add gmail user programmatically). – Matteo Melani Mar 23 '11 at 22:25