A
A
Alexander2015-02-10 15:50:30
Email
Alexander, 2015-02-10 15:50:30

How to make a nodejs server handle mail arriving at a domain?

There is a domain, letters will come to it, to addresses like [email protected], I want to process these letters.
Here is the implementation on php
habrahabr.ru/post/126448

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Timur Shemsedinov, 2015-02-10
@kascor

The above article has a script in PHP, it needs to be translated into JavaScript, it is short and simple, there should be no problems. You can read from stdin to node.js via the process.stdin stream:

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (text) { ... });
process.stdin.on('end', function () { ... });

You can read environment variables through process.env['VARIABLE_NAME']

V
Vanya Huk, 2017-09-30
@lemonlimelike

change write permissions on the folder

A
Alexander Sobolev, 2017-09-30
@san_jorich

Russian is written - Permission denied. The error is cut down with axes ( my account(s) ) - chmod 0777

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question