If Ghost is installed on a DigitalOcean Droplet and staff invites, password resets or member signup emails fail with:
Fix
Most mail providers offer an alternative submission port that isn’t blocked. Mailgun accepts SMTP on port 2525, so set the host and port explicitly in yourconfig.production.json:
ghost restart for the change to take effect, then send a test invite to confirm mail is working.
Port 2525 doesn’t support implicit TLS, so
secure must be false. Setting requireTLS to true makes Nodemailer upgrade the connection with STARTTLS and fail the send if the upgrade doesn’t succeed. Without it, Nodemailer only attempts STARTTLS when the server advertises support for it, and otherwise continues unencrypted.
