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
- Configure mail settings with port 587 and secure: false
- 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.
Description
Ghosler fails to send test emails via SMTP with STARTTLS (port 587), returning
ECONNRESET: read ECONNRESET.Environment
SMTP Configuration
Steps to Reproduce
Expected
Email sends successfully
Actual
Error:
ECONNRESET: read ECONNRESETEvidence
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: trueor different TLS options for STARTTLS connections on port 587.