[Self-hosted] Admin SMTP test reports success while real email sends fail

(#3476) Bug Needs triage self-hosting

Observed behaviour

With a broken SMTP config (see #1090), the SMTP test in the admin panel showed success every time. Real emails (email-change verification) failed with "SMTP send failed" in fluxer-api logs. The test calls logged no SMTP activity or errors at all, so the test may not be attempting a real connection

Reproduction steps

  1. Set SMTP port to 587 with a provider that expects STARTTLS (I used Mailgun)
  2. Run the SMTP test in the admin panel → reports success
  3. Trigger a real email (e.g. change email address) → nothing arrives
  4. Check fluxer-api logs → "SMTP send failed" for the real send, nothing for the test

Build information

Self-hosted, Docker Compose, fluxer-api:v1 (digest (sha256:d8b2670729ea45506b41b64abe3c8cf4b5ed92ea44c42fe93e3111c04e9d45d9))

Platform

Self-hosting

Evidence

Test endpoint, no error logged: POST /admin/instance/config/smtp-tests → 200, 82ms Real send, same config: SmtpEmailProvider: "wrong version number", code ESOCKET → "SMTP send failed" Expected The test should open a real SMTP connection and authenticate, and show the actual error in the UI. A false success sent me debugging the network for a while when the problem was the TLS mode.

Comments

Sign in with Fluxer to comment and vote.

No comments yet.