I googled out quite a few but all are at best alpha versions, so it seems I will have to try an code one. Instead of coding one from scratch I would like to build on existing implementation, but a good one.
Any suggestions?
I googled out quite a few but all are at best alpha versions, so it seems I will have to try an code one. Instead of coding one from scratch I would like to build on existing implementation, but a good one.
Any suggestions?
SMTP server - I've used Simple SMTP in conjunction with mailparser. IMHO, these are the best tools on the Internet for building SMTP servers in Node.js.
UPDATE: Simple SMTP has been deprecated. Use SMTP server instead (the successor of the Simple SMTP module).
Haraka: https://github.com/baudehlo/Haraka
Is a full featured mail server in node.js - should do everything that you need.
RFC 2821 (http://tools.ietf.org/html/rfc2821) is not too complex, you should be able to flesh out a server in about 300 lines of js.
Some answers here are quite outdated, so I'd like to offer the lastest.
There are currently three Node SMTP servers (libraries) I know of:
There's also mailin which is an SMTP server that receives messages and posts them to some URL for you to process. Mailin uses Python for some optional features.
Personally, I use node_mailer :
send emails from node.js to your smtp server, simple as cake.
From https://github.com/marak/node_mailer :
Features :