Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail server crashes when recieving mail. #55

Open
jtagcat opened this issue Jun 28, 2021 · 0 comments
Open

Mail server crashes when recieving mail. #55

jtagcat opened this issue Jun 28, 2021 · 0 comments

Comments

@jtagcat
Copy link

jtagcat commented Jun 28, 2021

Using jtagcat/docker branch

$ telnet domain.tld 25
Trying <redacted>...
Connected to domain.tld.
Escape character is '^]'.
220 domain.tld ESMTP Hi can I have some mail please?
HELO domain.tld
250 domain.tld Nice to meet you, night
MAIL FROM: <[email protected]>
250 Accepted
RCPT TO: <[email protected]>
250 Accepted
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: this is testing

Hello

This is human testing

.
Connection closed by foreign host
pleasenospam-mail-server    |
pleasenospam-mail-server    | > [email protected] mail-server /usr/src/app
pleasenospam-mail-server    | > node mail-server.js
pleasenospam-mail-server    |
pleasenospam-mail-server    | [ 'domain.tld' ]
pleasenospam-mail-server    | Creating a pool connected to pleasenospam-db:28015
pleasenospam-mail-server    | /usr/src/app/mail-server.js:29
pleasenospam-mail-server    |                           email.from = email.from.value;
pleasenospam-mail-server    |                                                   ^
pleasenospam-mail-server    |
pleasenospam-mail-server    | TypeError: Cannot read property 'value' of undefined
pleasenospam-mail-server    |     at originalMsg (/usr/src/app/mail-server.js:29:29)
pleasenospam-mail-server    |     at PassThrough.stream.on (/usr/src/app/mail-server.js:61:5)
pleasenospam-mail-server    |     at PassThrough.emit (events.js:188:13)
pleasenospam-mail-server    |     at endReadableNT (_stream_readable.js:1129:12)
pleasenospam-mail-server    |     at process.internalTickCallback (internal/process/next_tick.js:72:19)
pleasenospam-mail-server    | npm ERR! code ELIFECYCLE
pleasenospam-mail-server    | npm ERR! errno 1
pleasenospam-mail-server    | npm ERR! [email protected] mail-server: `node mail-server.js`
pleasenospam-mail-server    | npm ERR! Exit status 1
pleasenospam-mail-server    | npm ERR!
pleasenospam-mail-server    | npm ERR! Failed at the [email protected] mail-server script.
pleasenospam-mail-server    | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
pleasenospam-mail-server    |
pleasenospam-mail-server    | npm ERR! A complete log of this run can be found in:
pleasenospam-mail-server    | npm ERR!     /root/.npm/_logs/2021-06-28T17_26_05_501Z-debug.log
pleasenospam-mail-server exited with code 1
$ cat /root/.npm/_logs/2021-06-28T17_26_05_501Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'mail-server' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'premail-server', 'mail-server', 'postmail-server' ]
5 info lifecycle [email protected]~premail-server: [email protected]
6 info lifecycle [email protected]~mail-server: [email protected]
7 verbose lifecycle [email protected]~mail-server: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~mail-server: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/src/app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle [email protected]~mail-server: CWD: /usr/src/app
10 silly lifecycle [email protected]~mail-server: Args: [ '-c', 'node mail-server.js' ]
11 silly lifecycle [email protected]~mail-server: Returned: code: 1  signal: null
12 info lifecycle [email protected]~mail-server: Failed to exec mail-server script
13 verbose stack Error: [email protected] mail-server: `node mail-server.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:188:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:188:13)
13 verbose stack     at maybeClose (internal/child_process.js:978:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
14 verbose pkgid [email protected]
15 verbose cwd /usr/src/app
16 verbose Linux 5.4.0-74-generic
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "mail-server"
18 verbose node v11.6.0
19 verbose npm  v6.5.0-next.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] mail-server: `node mail-server.js`
22 error Exit status 1
23 error Failed at the [email protected] mail-server script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant