Receiving and processing emails with Ruby - SMTP server

36 views
Skip to first unread message

Marcelo de Moraes Serpa

unread,
Apr 20, 2012, 11:53:12 PM4/20/12
to rubyonra...@googlegroups.com
Hi,

Might not be the right place to post this, but doesn't hurt to try.

Does anyone know of a nice Ruby SMTP server implementation out there? I've searched around but only found some code snippets. I'd like users from my web app to be able to interact with the application by sending emails, so each user would get some unique id like: a3bv42...@mywebapp.com, and sending a message to it would trigger some logic in the server related to the account of the user. The alternative is to use postfix, but I'd rather avoid the learning curve.

Any hints appreciated,

Thanks in advance!

- Marcelo.

gr2020

unread,
Apr 21, 2012, 5:00:32 PM4/21/12
to Ruby on Rails: Talk
Here's one:

https://github.com/aarongough/mini-smtp-server

Greg

> Does anyone know of a nice Ruby SMTP server implementation out there? I've
> searched around but only found some code snippets. I'd like users from my
> web app to be able to interact with the application by sending emails, so
> each user would get some unique id like: a3bv424b52...@mywebapp.com, and

Matt Jones

unread,
Apr 22, 2012, 3:36:16 PM4/22/12
to rubyonra...@googlegroups.com


On Friday, 20 April 2012 23:53:12 UTC-4, FFighter wrote:
Hi,

Might not be the right place to post this, but doesn't hurt to try.

Does anyone know of a nice Ruby SMTP server implementation out there? I've searched around but only found some code snippets. I'd like users from my web app to be able to interact with the application by sending emails, so each user would get some unique id like: a3bv424b52fff@mywebapp.com, and sending a message to it would trigger some logic in the server related to the account of the user. The alternative is to use postfix, but I'd rather avoid the learning curve.

The mini-smtp server posted previously might work, but if you're going to be doing a lot of email stuff I'd recommend using postfix anyways - it's got a lot more power in terms of filtering mail, retrying deliveries, ratelimiting spammers, verifying SPF + DKIM headers, etc: all stuff that you'd have to re-implement manually with a Ruby server.

--Matt Jones 

Marcelo de Moraes Serpa

unread,
Apr 22, 2012, 11:13:41 PM4/22/12
to rubyonra...@googlegroups.com
@Greg, thank you for that! I'll check it out.

@Matt,  it's just a prototype as of now, I'd rather keep it simple so the idea of having to mess with postfix kind of scares me. But I'll keep it in mind :)

Cheers!

- Marcelo.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/-pH4JKch6ssJ.

To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply all
Reply to author
Forward
0 new messages