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

XCLIENT client passthrough has an empty callback #153

Open
xPaw opened this issue Jun 5, 2020 · 0 comments
Open

XCLIENT client passthrough has an empty callback #153

xPaw opened this issue Jun 5, 2020 · 0 comments

Comments

@xPaw
Copy link

xPaw commented Jun 5, 2020

if (auth.method === 'XCLIENT') {
return callback(); // pass through
}

This causes a crash here:

TypeError: Cannot read property 'user' of undefined
    at node_modules/smtp-server/lib/sasl.js:461:31
    at SMTPServer.onAuth (node_modules/smtp-server/lib/smtp-server.js:199:20)
    at SMTPConnection.SASL_XCLIENT (node_modules/smtp-server/lib/sasl.js:436:22)
    at checkLogin (node_modules/smtp-server/lib/smtp-connection.js:931:26)
    at SMTPConnection.handler_XCLIENT (node_modules/smtp-server/lib/smtp-connection.js:950:9)
    at SMTPConnection._onCommand (node_modules/smtp-server/lib/smtp-connection.js:476:17)
    at SMTPStream.SMTPConnection._parser.oncommand (node_modules/smtp-server/lib/smtp-connection.js:58:52)
    at readLine (node_modules/smtp-server/lib/smtp-stream.js:127:22)
    at SMTPStream._write (node_modules/smtp-server/lib/smtp-stream.js:131:13)
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