mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #866] E-mail sending does not work if server (postfix) uses ECDSA certificate #604
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#604
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 @eddyJK on GitHub (Jul 26, 2023).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/866
Dear Healthchecks Developer Team and GitHub Community,
to reproduce the issue you need a mailserver using only ECDSA based certificates for encryption and Healthchecks docker.
I tested it with the Healtchchecks versions 2.4 and 2.10.
On the other hand the configuration works for the same mailserver unsing only RSA based certificates for encryption.
The following output appears:
I am looking forward to discuss possible fixes and / or workarounds.
@cuu508 commented on GitHub (Jul 28, 2023):
To help me reproduce the issue – are you using LetsEncrypt-issued certificates?
@eddyJK commented on GitHub (Jul 28, 2023):
Yes. With the following config:
text = True
non-interactive = True
webroot-path = /data/letsencrypt-acme-challenge
key-type = ecdsa
elliptic-curve = secp384r1
preferred-chain = ISRG Root X1
@cuu508 commented on GitHub (Jul 31, 2023):
I haven't had luck reproducing this yet.
I found a random mail server on shodan that listens on port 587 (STARTTLS) and seems to be using ECC certificate.
I started a throwaway Healthchecks instance like so:
In the web UI, I submitted the "Create Account" form which should trigger an outgoing email. The error I got was:
From the error message it looks like it got past the TLS handshake, but the SMTP credentials were wrong – which makes sense.
Can you point me to a publicly available mail server that I can test with (don't need username/password, just the hostname), or provide instructions to reproduce the issue in some other form?
@eddyJK commented on GitHub (Jul 31, 2023):
You can use the following:
@eddyJK commented on GitHub (Jul 31, 2023):
Please apologize. You are right. The correct certificate was not presented.
I did not follow the whole instruction of the mail server.
A last question: Setting EMAIL_USE_VERIFICATION to False did not work as well. Should this option not disable the certificate check?
@cuu508 commented on GitHub (Jul 31, 2023):
Awesome, mystery solved :-)
EMAIL_USE_VERIFICATIONcontrols whether Healthchecks sends an email with a confirmation link when adding an email integration. (See https://healthchecks.io/docs/self_hosted_configuration/#EMAIL_USE_VERIFICATION)@eddyJK commented on GitHub (Aug 1, 2023):
Thank you again and I want to apologize for stealing your time.
Of course the deployment of the correct full chain certificate is already fixed.
At the moment I am investigating, why other web services did not alarm in this configuration.