SMTP server to deliver mail to Rails app, how?
- by Gunchars
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:
http://www.exim.org/exim-html-current/doc/html/spec_html/ch29.html
http://guides.rubyonrails.org/action_mailer_basics.html#receiving-emails