-
Notifications
You must be signed in to change notification settings - Fork 395
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
[Bug]: SMTP relay fails to connect to Prontonmail bridge #2765
Comments
Are you still having this issue? What port are you using? |
Yes this is still an issue and it is using port 25 for the protonmail bridge. |
Have you tested with leaving secure toggled off? I read that the package we are using doesn't want that set for other ports which I updated for the next release but you can test now. |
I have tested with secure off and it still has the same failure. |
I'm using ProtonMail SMTP Tokens rather than the bridge, but with secure on it doesn't work for me neither. Turning secure off fixed it for me With Secure On: |
Thanks for confirming. I have this fixed for the next release |
Fixed in v2.10.0 |
I am still having this issue after the fix.
and with secure:
Is there a way to tell it to not validate the ssl cert for the email? Many thanks in advance! |
@advplyr I may be wrong, but since audiobookshelf uses nodemailer, there could easily be either a existing check on the SMTP cert or an additional toggle to add "rejectUnauthorized: false" in the createTransport to allow self-signed certs |
Yep, so I think a reasonable fix might be to include the following in the getTransportObject within /server/objects/settings/EmailSettings.js:
|
Describe the issue
While using the Proton mail bridge, ABS is unable to send emails via SMTP.
Steps to reproduce the issue
(configuration is known good as other apps (Ombi / overseer) function with the bridge)
(mail bridge config is known good as other services can send mail through it such as Ombi or Overseerr)
[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)
[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
The text was updated successfully, but these errors were encountered: