News for hackers. Stuff that matters.
Re:Mailin – Receive inbound emails in your web app with Node.js by randunel on Saturday June 07, 2014 @07:20PM (#7863428)
This project looks like a wrapper over andris9/simplesmtp, and should be advertised as such instead of a smtp implementation. Check out https://github.com/baudehlo/Haraka for a mature smtp project instead of a wrapper.
Re:Mailin – Receive inbound emails in your web app with Node.js by eyepulp on Saturday June 07, 2014 @11:54PM (#7863923)
I'll second the vote for Haraka. Good support via IRC, and a very strong, accessible plugin architecture. I like the basic mechanism Mailin is providing (convert e-mail to a semi-structured doc) - I just don't know their smtp wrapper's reliability. It's tempting to just build a Haraka plugin to provide a similar output (and feed it to Elasticsearch for logging/searching later on).

Reading through the source it looks like it spawns a child_process per-message to for checking both SPF and DKIM via a python script... That feels inefficient, but I don't know if there's a better node-based solution.

Re:Mailin – Receive inbound emails in your web app with Node.js by Flolagale on Sunday June 08, 2014 @05:42AM (#7864330)
The main objective of mailin is providing the service email-to-webhook with a very easy setup. You're right, for the spawned child processes, the correct way to do it while still using python would be to have some running daemons to connect to.
Re:Mailin – Receive inbound emails in your web app with Node.js by stevekemp on Sunday June 08, 2014 @12:20PM (#7865039)
I'll "third" the recommendation.

I once managed a commercial mail filtering company on the perl-predecessor, qpsmtpd, which I documented here:

http://book.mail-scanning.com/

Re:Mailin – Receive inbound emails in your web app with Node.js by Flolagale on Sunday June 08, 2014 @05:36AM (#7864325)
You're right, and it is clearly stated in the readme that mailin is based on andris9 work.
Re:Mailin – Receive inbound emails in your web app with Node.js by mikegioia on Saturday June 07, 2014 @11:34PM (#7863894)
This is really great. Plus I love the attention to detail in the documentation, and how the demo worked right away. We currently use Mailgun for this but I would love to switch over to using Mailin and host it ourself.
Re:Mailin – Receive inbound emails in your web app with Node.js by dubcanada on Saturday June 07, 2014 @05:26PM (#7863145)
"language": "hawaiian" ?
Re:Mailin – Receive inbound emails in your web app with Node.js by michaelmior on Saturday June 07, 2014 @07:04PM (#7863386)
Language detection isn't something I would rely on. Especially since a lot of emails don't contain much text. (Likely even less so with your test message.) Looks like they're using the languagedetect[1] module which also returns a confidence score. This would be a helpful thing to include in the results.

[1] https://github.com/FGRibreau/node-language-detect