STARTTLS failed: tls: failed to verify certificate #83

Closed
opened 2026-04-05 16:15:43 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @drhirn on 3/6/2026

Databasus version

3.17.0

Operating system and architecture

Docker

Describe the bug (please write manually, do not ask AI to summarize)

Trying to create a new email notifier. Mailing host is a postfix docker container running on my host. Networks between Databasus and the postfix container are connected.
Databasus tries to connect via StartTLS which isn't - and can't be - configured on the postfix container. Which leads to an error.
I tried to leave the "Port"-field empty like suggested in #152 but then the send test notification button is greyed out.

What happened:
STARTTLS failed: tls: failed to verify certificate: x509: certificate is valid for localhost, not postfix

(postfix is the dns name of the postfix container)

What I expected:

Would be great to disable StartTLS/SSL when connecting to an smtp server to send mail without configuring StartTLS/SSL on that server.

Steps to reproduce

  1. Setup a docker container with e.g. image boky/postfix
  2. Try to create a new notifier with type Email

Have you asked AI how to solve the issue?

  • Claude Sonnet 4.6 or newer
  • ChatGPT 5.2 or newer
  • [x ] No

Additional context / logs

*Originally created by @drhirn on 3/6/2026* ## Databasus version 3.17.0 ## Operating system and architecture Docker ## Describe the bug (please write manually, do not ask AI to summarize) Trying to create a new email notifier. Mailing host is a postfix docker container running on my host. Networks between Databasus and the postfix container are connected. Databasus tries to connect via StartTLS which isn't - and can't be - configured on the postfix container. Which leads to an error. I tried to leave the "Port"-field empty like suggested in #152 but then the `send test notification` button is greyed out. **What happened:** `STARTTLS failed: tls: failed to verify certificate: x509: certificate is valid for localhost, not postfix` (`postfix` is the dns name of the postfix container) **What I expected:** Would be great to disable StartTLS/SSL when connecting to an smtp server to send mail without configuring StartTLS/SSL on that server. ## Steps to reproduce 1. Setup a docker container with e.g. image boky/postfix 2. Try to create a new notifier with type Email ## Have you asked AI how to solve the issue? <!-- Using AI to diagnose issues before filing a bug report helps narrow down root causes. --> - [ ] Claude Sonnet 4.6 or newer - [ ] ChatGPT 5.2 or newer - [x ] No ## Additional context / logs <!-- Screenshots, error messages, relevant log output, etc. -->
MrUnknownDE added the bugbugbugbugbugbugbugbugbugbugbugbugbugbugbugbugbugbug labels 2026-04-05 16:15:43 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#83