mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-07 21:30:36 -05:00
[GH-ISSUE #264] self-signed certificate error when attempting to send an email #10127
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Nightreaper77 on GitHub (Mar 2, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/264
When attempting to send an email after configuring SMTP, I am getting the following error:
I'm using ProtonMail Bridge as my SMTP server (unofficial docker container here: shenxn/protonmail-bridge-docker)
Relatively confident that the SMTP server is setup correctly, as I'm using the same configuration for other services like Nextcloud and they are working fine.
Here's my smtp configuration from config/config.yml:
ProtonMail Bridge is meant to use STARTTLS, which is normally configured as insecure, but I did try smtp_secure as well and got a TLS version mismatch (as expected).
Since it's a self-signed cert error, I imagine a config option could be added to ignore certificate warnings, but not sure.
@miloschwartz commented on GitHub (Mar 3, 2025):
We use Nodemailer under the hood to send emails. I found this article that shows the following in the config.
Wondering if you think this would do the trick? I can expose this via the config file for you to test in the next release.
@Nightreaper77 commented on GitHub (Mar 3, 2025):
Yeah that definitely looks like the correct option. I'll test on next release. Thanks for the quick reply!
@Nightreaper77 commented on GitHub (Mar 3, 2025):
Built from dev branch and confirmed that it does indeed fix the issue. Thanks!
@miloschwartz commented on GitHub (Mar 3, 2025):
Awesome! Just fixed the typo in the config variable name.
@reg98643t commented on GitHub (Jul 7, 2025):
Sorry to resurrect this thread, but what do I put in my config.yml to make this work? I have the same issue with PM Bridge.
Edit: nevermind, if anyone stumbles on this it's