Skip to main content
Skip to main content

SMTP on Zerops

Keywords

smtp, email, mail, sendgrid, mailgun, ses, gmail, port 587, starttls, send email

TL;DR

Only port 587 (STARTTLS) is allowed for outbound email — ports 25 and 465 are permanently blocked. Use an external email service.

Port Configuration

PortStatusProtocol
25BlockedTraditional SMTP (spam risk)
465BlockedLegacy SMTPS (deprecated)
587AllowedSMTP submission with STARTTLS

Provider Configurations

ProviderHostPortUsernamePassword
Gmailsmtp.gmail.com587user@gmail.comApp password
Google Workspacesmtp-relay.gmail.com587user@domain.comRegular/App pass
Office 365smtp.office365.com587user@domain.comAccount password
SendGridsmtp.sendgrid.net587apikeyAPI key
Mailgunsmtp.mailgun.org587postmaster@domainPassword
Amazon SESemail-smtp.{region}.amazonaws.com587Access keySecret key

Configuration Example

envVariables:
SMTP_HOST: smtp.sendgrid.net
SMTP_PORT: "587"
SMTP_USER: apikey
envSecrets:
SMTP_PASSWORD: <sendgrid-api-key>

Gotchas

  1. Port 25 is permanently blocked: Cannot be unblocked — use 587 with STARTTLS
  2. Port 465 is also blocked: Legacy SMTPS is deprecated — use 587
  3. Gmail needs App Password: Regular Gmail passwords won't work — generate an App Password in Google Account settings

See Also

  • zerops://guides/firewall
  • zerops://guides/environment-variables