mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 06:55:53 +03:00
[GH-ISSUE #967] Unable to send email notification with protonmail bridge #678
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#678
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @nmonserrato on GitHub (Mar 3, 2024).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/967
Hey there!
I'm running healthchecks on a TrueNas Scale instance (docker image / k3s), and trying to configure it so that it uses my local protonmail bridge to send the email notifications.
I'm quite sure that the bridge works fine because I also use it for Truenas alerts, and they work ok.
The bridge unfortunately uses a self-signed certificate, and from the pod logs it seems clear that this is the issue:
Is there a way to add this certificate as trusted, or skip the validation?
Thanks in advance for the help and for the great tool!
@cuu508 commented on GitHub (Mar 4, 2024):
From a quick look at Django email-related configuration options, it doesn't look like there's a simple way to turn the validation off.
A couple ideas:
Perhaps it's possible to configure the bridge to require no TLS/SSL encryption? i.e., Security: None?
I have not tested this, but perhaps something like this could work:
If it does work, the easiest way to get this change in production would be to fork the Healthchecks repository, and put the customized EmailBackend in the fork. Then build custom Docker images off it.
You could also suggest a new configuration option to the Django project, for controlling the certificate validation mode. There's understandable reluctance to add new settings parameters, but may be worth a shot.
@nmonserrato commented on GitHub (Mar 10, 2024):
thanks a lot for the answer! Unfortunately those fields in Protonmail are read-only, nothing configurable.
Not a python developer here, but I'll try to do what you suggest and test locally, then raise a PR if it works.
Thanks again!