mailin icon indicating copy to clipboard operation
mailin copied to clipboard

node 4.2.4 support

Open yawetse opened this issue 10 years ago • 5 comments

Hi Florent thanks for the awesome npm module, I have a quick question. Have you tested mailin on node 4.x?

I realized I have two express based applications that run mailin internally and the application that's still on node 0.12.6 works, but node 4.2.4.

I did a quick check to see if mailin was actually running on port 25, and as expected on node 4.2.4 the module emits info: Mailin Smtp server listening on port 25 but does not in fact run on port 25.

node 4.2.4

ubuntu@pcs-app2-prod:~$ sudo lsof -i -P | grep *:
dhclient    678     root    5u  IPv4   7716      0t0  UDP *:68 
dhclient    678     root   20u  IPv4   7678      0t0  UDP *:51930 
dhclient    678     root   21u  IPv6   7679      0t0  UDP *:18479 
sshd       1056     root    3u  IPv4   9212      0t0  TCP *:22 (LISTEN)
sshd       1056     root    4u  IPv6   9214      0t0  TCP *:22 (LISTEN)
nginx      1252     root    6u  IPv4   9406      0t0  TCP *:80 (LISTEN)
nginx      1252     root    7u  IPv6   9407      0t0  TCP *:80 (LISTEN)
nginx      1253 www-data    6u  IPv4   9406      0t0  TCP *:80 (LISTEN)
nginx      1253 www-data    7u  IPv6   9407      0t0  TCP *:80 (LISTEN)
nginx      1254 www-data    6u  IPv4   9406      0t0  TCP *:80 (LISTEN)
nginx      1254 www-data    7u  IPv6   9407      0t0  TCP *:80 (LISTEN)
nginx      1255 www-data    6u  IPv4   9406      0t0  TCP *:80 (LISTEN)
nginx      1255 www-data    7u  IPv6   9407      0t0  TCP *:80 (LISTEN)
nginx      1256 www-data    6u  IPv4   9406      0t0  TCP *:80 (LISTEN)
nginx      1256 www-data    7u  IPv6   9407      0t0  TCP *:80 (LISTEN)
ntpd       1530      ntp   16u  IPv4  10876      0t0  UDP *:123 
ntpd       1530      ntp   17u  IPv6  10877      0t0  UDP *:123 
node      15766     root   12u  IPv6 132402      0t0  TCP *:8786 (LISTEN)

versus node 0.12.6

ubuntu@pcs-app1-prod:~$ sudo lsof -i -P | grep *:
dhclient   680     root    5u  IPv4   8258      0t0  UDP *:68 
dhclient   680     root   20u  IPv4   8123      0t0  UDP *:37529 
dhclient   680     root   21u  IPv6   8124      0t0  UDP *:38796 
sshd      1049     root    3u  IPv4   8542      0t0  TCP *:22 (LISTEN)
sshd      1049     root    4u  IPv6   8544      0t0  TCP *:22 (LISTEN)
node      1197     root   12u  IPv6   9088      0t0  TCP *:25 (LISTEN)
node      1197     root   13u  IPv6   9089      0t0  TCP *:8786 (LISTEN)
nginx     1252     root    6u  IPv4   8837      0t0  TCP *:80 (LISTEN)
nginx     1252     root    7u  IPv6   8838      0t0  TCP *:80 (LISTEN)
nginx     1253 www-data    6u  IPv4   8837      0t0  TCP *:80 (LISTEN)
nginx     1253 www-data    7u  IPv6   8838      0t0  TCP *:80 (LISTEN)
nginx     1254 www-data    6u  IPv4   8837      0t0  TCP *:80 (LISTEN)
nginx     1254 www-data    7u  IPv6   8838      0t0  TCP *:80 (LISTEN)
nginx     1255 www-data    6u  IPv4   8837      0t0  TCP *:80 (LISTEN)
nginx     1255 www-data    7u  IPv6   8838      0t0  TCP *:80 (LISTEN)
nginx     1256 www-data    6u  IPv4   8837      0t0  TCP *:80 (LISTEN)
nginx     1256 www-data    7u  IPv6   8838      0t0  TCP *:80 (LISTEN)
ntpd      1527      ntp   16u  IPv4  10400      0t0  UDP *:123 
ntpd      1527      ntp   17u  IPv6  10401      0t0  UDP *:123 

cc @janbialostok

yawetse avatar Jan 12 '16 23:01 yawetse

That is strange @yawetse. Travis-ci runs mailin tests on node 4.2.4. Which version of mailin are you running?

Flolagale avatar Jan 13 '16 08:01 Flolagale

mailin 3.0.2

it is very strange, mailin appears to be running on the port, but it doesn't so that it's actually listening on port 25.

When I use NVM to switch back to 0.12.6 it works fine.

yawetse avatar Jan 13 '16 13:01 yawetse

any update on above issue

aqumus avatar Jan 20 '16 18:01 aqumus

Probably same issue as #75.

tomforster avatar Jan 24 '16 15:01 tomforster

@tomforster provided a fix by allowing the host configuration to be set from the command line. It is published as [email protected].

Flolagale avatar Jan 25 '16 11:01 Flolagale