audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

[Bug]: SMTP relay fails to connect to Prontonmail bridge

Open mpclepto opened this issue 5 months ago • 6 comments

Describe the issue

While using the Proton mail bridge, ABS is unable to send emails via SMTP.

Steps to reproduce the issue

  1. Install / configure protonmail bridge app on unraid (configuration is known good as other apps (Ombi / overseer) function with the bridge)
  2. install / configure ABS to point to the mail bridge (whether "secure" or "insecure" is selected, neither function) (mail bridge config is known good as other services can send mail through it such as Ombi or Overseerr)
  3. receive the following log error while "secure" is selected in ABS:

[2024-03-18 15:19:39.116] INFO: [EmailManager] Sending test email [2024-03-18 15:19:39.160] ERROR: [EmailManager] Failed to verify SMTP connection config [Error: B8ECF7BE60140000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354: ] { library: 'SSL routines', reason: 'wrong version number', code: 'ESOCKET', command: 'CONN' } (EmailManager.js:17)

  1. receive the following log error while "insecure" is selected in ABS:

[2024-03-18 15:24:01.008] INFO: [EmailManager] Sending test email [2024-03-18 15:24:01.059] ERROR: [EmailManager] Failed to verify SMTP connection config Error: self-signed certificate at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34) at TLSSocket.emit (node:events:518:28) at TLSSocket._finishInit (node:_tls_wrap:1085:8) at ssl.onhandshakedone (node:_tls_wrap:871:12) { code: 'ESOCKET', command: 'CONN' } (EmailManager.js:17)

With ABS, I am able to send emails to the Gmail SMTP gateway with no issues. I'm not entirely certain what the correct fix is here, but seeing as how this is entirely internal to my own network, I would be happy with a "allow self-signed cert" if that fixes the issue. Thanks in advance!

Audiobookshelf version

v2.8.1

How are you running audiobookshelf?

Docker

mpclepto avatar Mar 18 '24 20:03 mpclepto