SMTP server to deliver mail to Rails app, how?
Posted
by
Gunchars
on Pro Webmasters
See other posts from Pro Webmasters
or by Gunchars
Published on 2011-07-03T19:49:56Z
Indexed on
2011/12/01
2:21 UTC
Read the original article
Hit count: 264
ruby-on-rails
all, this is my first question and I hope I chose the right place to post it. Here's what I need help with:
I've been looking for this all day and I'm having a hard time finding a SMTP mail server that would fit the following criteria:
- lightweight, does one thing and does it good
- is able to route and deliver local mail to a Rails application
The second point could be accomplished in any number of ways. I'm running a VPS, so I have full freedom in how to implement this. It could, for example, put messages straight in the db, pipe them to a helper program that would then process them accordingly or also save messages in a mbox file and run a script after every received message.
I'm building a small site so the traffic is not going to be a problem. If there are alternative ways to deliver messages to a Rails app, I'd gladly hear about them. Thank you.
EDIT: After long searching, I think I've found what I was looking for. Exim is a mail server that can deliver local mail to pipes. Also, Rails 3 and ActionMailer can make it really easy to process the incoming mail. More info here:
© Pro Webmasters or respective owner