From 356e2c8ee640046fd6e8710df590e54edd813aaf Mon Sep 17 00:00:00 2001 From: Stefan Date: Thu, 21 May 2026 23:30:13 +0300 Subject: [PATCH] Default SMTP port to 587 instead of 465 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hetzner (and most VPS providers) block outbound 465 by default as anti-spam policy. Port 587 with STARTTLS is open and supported by Resend (and any standard SMTP service). The transporter code already flips `secure: false` automatically when port != 465, so no code change is needed — just the default. --- .env.example | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index cf7cb10..930dbab 100644 --- a/.env.example +++ b/.env.example @@ -1,8 +1,10 @@ PORT=3000 -# SMTP — defaults are set for Resend (smtp.resend.com:465) +# SMTP — defaults are set for Resend. +# Port 587 (STARTTLS) is used instead of 465 (implicit TLS) because most VPS +# providers (Hetzner, DigitalOcean, etc.) block outbound 465 by default. SMTP_HOST=smtp.resend.com -SMTP_PORT=465 +SMTP_PORT=587 SMTP_USER=resend SMTP_PASSWORD= MAIL_FROM=send@read.atanasov.fi