Skip to content

ECONNRESET with STARTTLS on port 587 #75

@markuszohner

Description

@markuszohner

Description

Ghosler fails to send test emails via SMTP with STARTTLS (port 587), returning ECONNRESET: read ECONNRESET.

Environment

  • Ghosler version: 0.98.4
  • Server: Ubuntu 24.04 on Hetzner VPS
  • SMTP Provider: Scaleway TEM

SMTP Configuration

  • Host: smtp.tem.scaleway.com
  • Port: 587
  • Secure: false (for STARTTLS)

Steps to Reproduce

  1. Configure mail settings with port 587 and secure: false
  2. Click "Test Mail" button in Settings

Expected

Email sends successfully

Actual

Error: ECONNRESET: read ECONNRESET

Evidence

The same SMTP settings work perfectly via curl from the same server:

curl -v --ssl-reqd --url 'smtp://smtp.tem.scaleway.com:587'
--mail-from 'test@domain.com'
--mail-rcpt 'recipient@domain.com'
--user 'username:password'
-T - <<< 'Test'

Result: 250 2.0.0 OK: queued

Possible Fix

Nodemailer may need requireTLS: true or different TLS options for STARTTLS connections on port 587.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions