Closed abhas closed 11 years ago
Sadly this plugin only works on node 0.4.x, because the node core team removed some functionality I was using, and they haven't provided any new way of doing it under 0.6.
I'm pretty annoyed about the situation, but what can I do?
Is it possible that we could work together on rewriting this in some way so that it can work with the latest version of node-js? I am new to nodejs but can pick up fast to implement this plugin.
The only way I can think of is to write a wrapper in another language that somehow supports delimited submission over just stdin. There seems to be no way to write to stdout in the new node.
Is there a workaround? Like run qmail-smtpd on another port and use the smtp-forward or smtp-proxy plugins?
FWIW, Node 0.8 has the abilities we need added back in. We should be able to make it work under 0.8 now.
Please try the qmail_queue_fix branch. I implemented a fix for this, but haven't been able to test it.
@baudehlo I tested it out . The problem is qmail_queue.stdio[1]/[0] are streams. So it gives an badtype error as we are using it in the fs.write function since it expects fd. Instead we should be using qmail_queue.stdio[1].write(buff) and modify write_more function accordingly I beleive. Also, I think some other things are a bit different . Please check this [ https://gist.github.com/3052681 ] when you are free
I have finally fixed this in Haraka 2.1.
Thanks a lot for this! Haraka works great with qmail now! :+1:
I'm attempting to use the
qmail-queue
plugin. But it fails to compile and haraka does not start up. I have tried to install Haraka usingnpm
as well as using the git repository.This is the error that I get:
Line numer
5
ofqueue/qmail-queue
contains:var netBinding = process.binding('net');
I am using using node v0.6.8.