[Bug]: Failed to verify SMTP connection configuration #2312

Closed
opened 2026-04-25 00:06:00 +02:00 by adam · 0 comments
Owner

Originally created by @amasterengineer on GitHub (Oct 14, 2024).

What happened?

This was working fine until the server updated on 20241014 to version number 2.15.0. I was trying to send to my kindle and it kept failing. Upon looking into the smtp settings im getting this error when testing email configuration
Failed to verify SMTP connection configuration
I don't see anything to much in the logs

What did you expect to happen?

To be able to send emails to allow send to kindle device

Steps to reproduce the issue

  1. I have changed the settings multiple times and verified the information.

Audiobookshelf version

2.15.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Windows

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

{"timestamp":"2024-10-14 14:12:47.295","source":"EmailManager.js:13","message":"[EmailManager] Sending test email","levelName":"INFO","level":2}
{"timestamp":"2024-10-14 14:12:52.845","source":"EmailManager.js:17","message":"[EmailManager] Failed to verify SMTP connection config Error: Invalid login: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH0PR03CA0112.namprd03.prod.outlook.com 2024-10-14T19:12:52.837Z 08DCEBDAE13C899E]\n    at SMTPConnection._formatError (/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)\n    at SMTPConnection._actionAUTHComplete (/node_modules/nodemailer/lib/smtp-connection/index.js:1577:34)\n    at SMTPConnection.<anonymous> (/node_modules/nodemailer/lib/smtp-connection/index.js:1531:18)\n    at SMTPConnection._processResponse (/node_modules/nodemailer/lib/smtp-connection/index.js:982:20)\n    at SMTPConnection._onData (/node_modules/nodemailer/lib/smtp-connection/index.js:763:14)\n    at SMTPConnection._onSocketData (/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n    at TLSSocket.emit (node:events:519:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5) {\n  code: 'EAUTH',\n  response: '535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH0PR03CA0112.namprd03.prod.outlook.com 2024-10-14T19:12:52.837Z 08DCEBDAE13C899E]',\n  responseCode: 535,\n  command: 'AUTH LOGIN'\n}","levelName":"ERROR","level":4}
{"timestamp":"2024-10-14 14:18:48.513","source":"EmailManager.js:13","message":"[EmailManager] Sending test email","levelName":"INFO","level":2}
{"timestamp":"2024-10-14 14:18:54.190","source":"EmailManager.js:17","message":"[EmailManager] Failed to verify SMTP connection config Error: Invalid login: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH0P223CA0029.NAMP223.PROD.OUTLOOK.COM 2024-10-14T19:18:54.180Z 08DCEBDD15740D38]\n    at SMTPConnection._formatError (/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)\n    at SMTPConnection._actionAUTHComplete (/node_modules/nodemailer/lib/smtp-connection/index.js:1577:34)\n    at SMTPConnection.<anonymous> (/node_modules/nodemailer/lib/smtp-connection/index.js:1531:18)\n    at SMTPConnection._processResponse (/node_modules/nodemailer/lib/smtp-connection/index.js:982:20)\n    at SMTPConnection._onData (/node_modules/nodemailer/lib/smtp-connection/index.js:763:14)\n    at SMTPConnection._onSocketData (/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n    at TLSSocket.emit (node:events:519:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5) {\n  code: 'EAUTH',\n  response: '535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH0P223CA0029.NAMP223.PROD.OUTLOOK.COM 2024-10-14T19:18:54.180Z 08DCEBDD15740D38]',\n  responseCode: 535,\n  command: 'AUTH LOGIN'\n}","levelName":"ERROR","level":4}
{"timestamp":"2024-10-14 14:21:21.464","source":"SocketAuthority.js:117","message":"[SocketAuthority] Socket Connected Hz2XDYy8IWvy_A6mAAAL","levelName":"INFO","level":2}
{"timestamp":"2024-10-14 14:21:56.981","source":"LibraryItemController.js:878","message":"[LibraryItemController] User \"sara\" requested download for item \"The Laughing Corpse\" ebook at \"/EBooks/Laurell Hamilton/Anita Blake Series/The Laughing Corpse/The Laughing Corpse.epub\"","levelName":"INFO","level":2}
{"timestamp":"2024-10-14 14:23:11.272","source":"SocketAuthority.js:144","message":"[SocketAuthority] Socket Hz2XDYy8IWvy_A6mAAAL disconnected from client \"sara\" after 109808ms (Reason: client namespace disconnect)","levelName":"INFO","level":2}
{"timestamp":"2024-10-14 14:26:20.962","source":"SocketAuthority.js:144","message":"[SocketAuthority] Socket 7jmOtNulRE5NSbOvAAAJ disconnected from client \"root\" after 1323761ms (Reason: ping timeout)","levelName":"INFO","level":2}
{"timestamp":"2024-10-14 14:30:47.904","source":"SocketAuthority.js:117","message":"[SocketAuthority] Socket Connected 4gVyZYsJlQv0lRpEAAAN","levelName":"INFO","level":2}
{"timestamp":"2024-10-14 14:30:54.333","source":"EmailManager.js:13","message":"[EmailManager] Sending test email","levelName":"INFO","level":2}
{"timestamp":"2024-10-14 14:30:59.940","source":"EmailManager.js:17","message":"[EmailManager] Failed to verify SMTP connection config Error: Invalid login: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH3P220CA0003.NAMP220.PROD.OUTLOOK.COM 2024-10-14T19:30:59.936Z 08DCEC40C4CF29C3]\n    at SMTPConnection._formatError (/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)\n    at SMTPConnection._actionAUTHComplete (/node_modules/nodemailer/lib/smtp-connection/index.js:1577:34)\n    at SMTPConnection.<anonymous> (/node_modules/nodemailer/lib/smtp-connection/index.js:1531:18)\n    at SMTPConnection._processResponse (/node_modules/nodemailer/lib/smtp-connection/index.js:982:20)\n    at SMTPConnection._onData (/node_modules/nodemailer/lib/smtp-connection/index.js:763:14)\n    at SMTPConnection._onSocketData (/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n    at TLSSocket.emit (node:events:519:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5) {\n  code: 'EAUTH',\n  response: '535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH3P220CA0003.NAMP220.PROD.OUTLOOK.COM 2024-10-14T19:30:59.936Z 08DCEC40C4CF29C3]',\n  responseCode: 535,\n  command: 'AUTH LOGIN'\n}","levelName":"ERROR","level":4}
{"timestamp":"2024-10-14 14:31:04.813","source":"EmailManager.js:13","message":"[EmailManager] Sending test email","levelName":"INFO","level":2}
{"timestamp":"2024-10-14 14:31:10.315","source":"EmailManager.js:17","message":"[EmailManager] Failed to verify SMTP connection config Error: Invalid login: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH3P220CA0003.NAMP220.PROD.OUTLOOK.COM 2024-10-14T19:31:10.311Z 08DCEC40C4CF2A24]\n    at SMTPConnection._formatError (/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)\n    at SMTPConnection._actionAUTHComplete (/node_modules/nodemailer/lib/smtp-connection/index.js:1577:34)\n    at SMTPConnection.<anonymous> (/node_modules/nodemailer/lib/smtp-connection/index.js:1531:18)\n    at SMTPConnection._processResponse (/node_modules/nodemailer/lib/smtp-connection/index.js:982:20)\n    at SMTPConnection._onData (/node_modules/nodemailer/lib/smtp-connection/index.js:763:14)\n    at SMTPConnection._onSocketData (/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n    at TLSSocket.emit (node:events:519:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5) {\n  code: 'EAUTH',\n  response: '535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH3P220CA0003.NAMP220.PROD.OUTLOOK.COM 2024-10-14T19:31:10.311Z 08DCEC40C4CF2A24]',\n  responseCode: 535,\n  command: 'AUTH LOGIN'\n}","levelName":"ERROR","level":4}

Additional Notes

I have tried researching for same errors
I have tried restarting the docker
I have verified information and sent email with web browser to confirm account is functional
I have changed the password and updated the field with no luck

Originally created by @amasterengineer on GitHub (Oct 14, 2024). ### What happened? This was working fine until the server updated on 20241014 to version number 2.15.0. I was trying to send to my kindle and it kept failing. Upon looking into the smtp settings im getting this error when testing email configuration Failed to verify SMTP connection configuration I don't see anything to much in the logs ### What did you expect to happen? To be able to send emails to allow send to kindle device ### Steps to reproduce the issue 1. I have changed the settings multiple times and verified the information. ### Audiobookshelf version 2.15.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Windows ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell {"timestamp":"2024-10-14 14:12:47.295","source":"EmailManager.js:13","message":"[EmailManager] Sending test email","levelName":"INFO","level":2} {"timestamp":"2024-10-14 14:12:52.845","source":"EmailManager.js:17","message":"[EmailManager] Failed to verify SMTP connection config Error: Invalid login: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH0PR03CA0112.namprd03.prod.outlook.com 2024-10-14T19:12:52.837Z 08DCEBDAE13C899E]\n at SMTPConnection._formatError (/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)\n at SMTPConnection._actionAUTHComplete (/node_modules/nodemailer/lib/smtp-connection/index.js:1577:34)\n at SMTPConnection.<anonymous> (/node_modules/nodemailer/lib/smtp-connection/index.js:1531:18)\n at SMTPConnection._processResponse (/node_modules/nodemailer/lib/smtp-connection/index.js:982:20)\n at SMTPConnection._onData (/node_modules/nodemailer/lib/smtp-connection/index.js:763:14)\n at SMTPConnection._onSocketData (/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5) {\n code: 'EAUTH',\n response: '535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH0PR03CA0112.namprd03.prod.outlook.com 2024-10-14T19:12:52.837Z 08DCEBDAE13C899E]',\n responseCode: 535,\n command: 'AUTH LOGIN'\n}","levelName":"ERROR","level":4} {"timestamp":"2024-10-14 14:18:48.513","source":"EmailManager.js:13","message":"[EmailManager] Sending test email","levelName":"INFO","level":2} {"timestamp":"2024-10-14 14:18:54.190","source":"EmailManager.js:17","message":"[EmailManager] Failed to verify SMTP connection config Error: Invalid login: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH0P223CA0029.NAMP223.PROD.OUTLOOK.COM 2024-10-14T19:18:54.180Z 08DCEBDD15740D38]\n at SMTPConnection._formatError (/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)\n at SMTPConnection._actionAUTHComplete (/node_modules/nodemailer/lib/smtp-connection/index.js:1577:34)\n at SMTPConnection.<anonymous> (/node_modules/nodemailer/lib/smtp-connection/index.js:1531:18)\n at SMTPConnection._processResponse (/node_modules/nodemailer/lib/smtp-connection/index.js:982:20)\n at SMTPConnection._onData (/node_modules/nodemailer/lib/smtp-connection/index.js:763:14)\n at SMTPConnection._onSocketData (/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5) {\n code: 'EAUTH',\n response: '535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH0P223CA0029.NAMP223.PROD.OUTLOOK.COM 2024-10-14T19:18:54.180Z 08DCEBDD15740D38]',\n responseCode: 535,\n command: 'AUTH LOGIN'\n}","levelName":"ERROR","level":4} {"timestamp":"2024-10-14 14:21:21.464","source":"SocketAuthority.js:117","message":"[SocketAuthority] Socket Connected Hz2XDYy8IWvy_A6mAAAL","levelName":"INFO","level":2} {"timestamp":"2024-10-14 14:21:56.981","source":"LibraryItemController.js:878","message":"[LibraryItemController] User \"sara\" requested download for item \"The Laughing Corpse\" ebook at \"/EBooks/Laurell Hamilton/Anita Blake Series/The Laughing Corpse/The Laughing Corpse.epub\"","levelName":"INFO","level":2} {"timestamp":"2024-10-14 14:23:11.272","source":"SocketAuthority.js:144","message":"[SocketAuthority] Socket Hz2XDYy8IWvy_A6mAAAL disconnected from client \"sara\" after 109808ms (Reason: client namespace disconnect)","levelName":"INFO","level":2} {"timestamp":"2024-10-14 14:26:20.962","source":"SocketAuthority.js:144","message":"[SocketAuthority] Socket 7jmOtNulRE5NSbOvAAAJ disconnected from client \"root\" after 1323761ms (Reason: ping timeout)","levelName":"INFO","level":2} {"timestamp":"2024-10-14 14:30:47.904","source":"SocketAuthority.js:117","message":"[SocketAuthority] Socket Connected 4gVyZYsJlQv0lRpEAAAN","levelName":"INFO","level":2} {"timestamp":"2024-10-14 14:30:54.333","source":"EmailManager.js:13","message":"[EmailManager] Sending test email","levelName":"INFO","level":2} {"timestamp":"2024-10-14 14:30:59.940","source":"EmailManager.js:17","message":"[EmailManager] Failed to verify SMTP connection config Error: Invalid login: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH3P220CA0003.NAMP220.PROD.OUTLOOK.COM 2024-10-14T19:30:59.936Z 08DCEC40C4CF29C3]\n at SMTPConnection._formatError (/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)\n at SMTPConnection._actionAUTHComplete (/node_modules/nodemailer/lib/smtp-connection/index.js:1577:34)\n at SMTPConnection.<anonymous> (/node_modules/nodemailer/lib/smtp-connection/index.js:1531:18)\n at SMTPConnection._processResponse (/node_modules/nodemailer/lib/smtp-connection/index.js:982:20)\n at SMTPConnection._onData (/node_modules/nodemailer/lib/smtp-connection/index.js:763:14)\n at SMTPConnection._onSocketData (/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5) {\n code: 'EAUTH',\n response: '535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH3P220CA0003.NAMP220.PROD.OUTLOOK.COM 2024-10-14T19:30:59.936Z 08DCEC40C4CF29C3]',\n responseCode: 535,\n command: 'AUTH LOGIN'\n}","levelName":"ERROR","level":4} {"timestamp":"2024-10-14 14:31:04.813","source":"EmailManager.js:13","message":"[EmailManager] Sending test email","levelName":"INFO","level":2} {"timestamp":"2024-10-14 14:31:10.315","source":"EmailManager.js:17","message":"[EmailManager] Failed to verify SMTP connection config Error: Invalid login: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH3P220CA0003.NAMP220.PROD.OUTLOOK.COM 2024-10-14T19:31:10.311Z 08DCEC40C4CF2A24]\n at SMTPConnection._formatError (/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)\n at SMTPConnection._actionAUTHComplete (/node_modules/nodemailer/lib/smtp-connection/index.js:1577:34)\n at SMTPConnection.<anonymous> (/node_modules/nodemailer/lib/smtp-connection/index.js:1531:18)\n at SMTPConnection._processResponse (/node_modules/nodemailer/lib/smtp-connection/index.js:982:20)\n at SMTPConnection._onData (/node_modules/nodemailer/lib/smtp-connection/index.js:763:14)\n at SMTPConnection._onSocketData (/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5) {\n code: 'EAUTH',\n response: '535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [CH3P220CA0003.NAMP220.PROD.OUTLOOK.COM 2024-10-14T19:31:10.311Z 08DCEC40C4CF2A24]',\n responseCode: 535,\n command: 'AUTH LOGIN'\n}","levelName":"ERROR","level":4} ``` ### Additional Notes I have tried researching for same errors I have tried restarting the docker I have verified information and sent email with web browser to confirm account is functional I have changed the password and updated the field with no luck
adam added the bug label 2026-04-25 00:06:00 +02:00
adam closed this issue 2026-04-25 00:06:00 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2312