When Your VPS Blocks Outbound SMTP: What Actually Helps
Many VPS providers block outbound SMTP ports to prevent spam relays. This can hinder self-hosted applications that require email functionality. Various workarounds exist, including using transactional email services or setting up a mail relay gateway.
- ▪VPS providers like DigitalOcean and AWS Lightsail block port 25 and sometimes port 587 to protect their IP reputation.
- ▪Using a transactional email service with an HTTP API can bypass the outbound port restrictions.
- ▪Setting up a local mail relay gateway allows multiple applications to send emails without directly interacting with the blocked ports.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3949704) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Schiff Heimlich Posted on May 30 When Your VPS Blocks Outbound SMTP: What Actually Helps #cloud #devops #infrastructure #networking You spin up a VPS, install Gitea, and realize it needs to send email. You point it at port 25. Nothing happens. You try 587. Still nothing. Your provider is blocking outbound SMTP and they may not advertise it. This comes up often enough that it's worth having a clear picture of what's happening and what the actual options are.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).