Reputation: 9574
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?
Upvotes: 33
Views: 49521
Reputation: 7
You could check out open-source projects like Mailtrain, Postal, or Mailu as a starting point. They’re well-maintained and customizable. Alternatively, Postfix or SMTPmart are solid options if you want to work with established mail server software.
Upvotes: -1
Reputation:
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.
Upvotes: 9
Reputation: 17097
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).
Upvotes: 43
Reputation: 486
Haraka: https://github.com/baudehlo/Haraka
Is a full featured mail server in node.js - should do everything that you need.
Upvotes: 25
Reputation: 12272
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.
Upvotes: 10