Support

Forum

A place for Dynadot and community experts alike to ask questions, share ideas, and more.
Configuring SMTP correctly for Node application
I have a node application in which I'm trying to use nodemailer to send e-mail using Dynadot's SMTP server. Despite using the correct username/pw, I keep getting a "Invalid login: 535 authentication failed" error. I've turned on debugging and posted the output below: harpoon_1 | [2019-02-06 08:07:15] DEBUG Creating transport: nodemailer (5.1.1; +https://nodemailer.com/; SMTP/5.1.1[client:5.1.1]) harpoon_1 | [2019-02-06 08:07:15] DEBUG Sending mail using SMTP/5.1.1[client:5.1.1] harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] Resolved smtp.webhost.dynadot.com as 166.88.19.240 [cache miss] harpoon_1 | [2019-02-06 08:07:15] INFO [VBRSeFNJQs] Connection established to 166.88.19.240:25 harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] S: 220 webhost.dynadot.com ESMTP harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] C: EHLO [127.0.0.1] harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] S: 250-AUTH LOGIN harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] S: 250-STARTTLS harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] S: 250 8BITMIME harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] C: STARTTLS harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] S: 220 TLS go ahead harpoon_1 | [2019-02-06 08:07:15] INFO [VBRSeFNJQs] Connection upgraded with STARTTLS harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] C: EHLO [127.0.0.1] harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] S: 250 8BITMIME harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] SMTP handshake finished harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] C: AUTH PLAIN AGluZm9AaGFycG9vbmNvcnAuaW8AdGVzdDEyMzQ= harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] S: 535 authentication failed harpoon_1 | [2019-02-06 08:07:15] INFO [VBRSeFNJQs] User "info@harpooncorp.io" failed to authenticate harpoon_1 | [2019-02-06 08:07:15] DEBUG [VBRSeFNJQs] Closing connection to the server using "end" harpoon_1 | [2019-02-06 08:07:15] ERROR Send Error: Invalid login: 535 authentication failed harpoon_1 | { Error: Invalid login: 535 authentication failed harpoon_1 | at SMTPConnection._formatError (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:774:19) harpoon_1 | at SMTPConnection._actionAUTHComplete (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:1509:34) harpoon_1 | at SMTPConnection._responseActions.push.str (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:547:26) harpoon_1 | at SMTPConnection._processResponse (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:933:20) harpoon_1 | at SMTPConnection._onData (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:739:14) harpoon_1 | at TLSSocket._socket.on.chunk (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:879:55) harpoon_1 | at emitOne (events.js:116:13) harpoon_1 | at TLSSocket.emit (events.js:211:7) harpoon_1 | at addChunk (_stream_readable.js:263:12) harpoon_1 | at readableAddChunk (_stream_readable.js:250:11) harpoon_1 | at TLSSocket.Readable.push (_stream_readable.js:208:10) harpoon_1 | at TLSWrap.onread (net.js:594:20) harpoon_1 | code: 'EAUTH', harpoon_1 | response: '535 authentication failed', harpoon_1 | responseCode: 535, harpoon_1 | command: 'AUTH PLAIN' } harpoon_1 | [2019-02-06 08:07:15] INFO [VBRSeFNJQs] Connection closed Additionally, the code I'm using to configure is below for your reference: const smtpTransport = nodemailer.createTransport({ host: "smtp.webhost.dynadot.com", port: 25, secure: false, requireTLS: true, logger: true, debug: true, tls: {rejectUnauthorized: false}, auth: { user: 'info@harpooncorp.io', pass: '**************' } });
teamdynadot replied d_h_san_diego_us
Sorry for the delay on this response. Unfortunately as nodemailer is a 3rd party software so we would not be able to trouble shoot it for you. We suggest looking directly on their site for any information that may help you.
Reply Quote
0 Replies
chatbot_bubble
Chat Online