anghene.de
Autonomy Theory, constraints, systems, AI, architecture, and authored software.
SMTP Relays on VPSs: Port 25, 2525, and the Practical Choice
When a VPS host blocks outbound SMTP, the first temptation is to open more firewall rules. Often the simpler answer is to use an authenticated SMTP relay.
The important distinction is that hosting mailboxes and delivering outbound mail are separate jobs. A VPS can accept incoming email while sending its own messages through a relay provider.
Inbound mail and outbound SMTP are different
Other mail servers deliver incoming messages to your MX host over TCP port 25. A provider’s port 25 restriction usually concerns outbound connections from the VPS to other mail servers. It does not automatically mean the VPS cannot accept inbound mail; host and provider firewall rules still determine that.
Direct-to-MX delivery also makes the VPS’s IP reputation part of every outbound message. A relay provider operates the delivery infrastructure and gives applications an authenticated submission endpoint.
Check the provider’s actual egress policy
The rules differ by cloud:
- DigitalOcean blocks outbound SMTP on ports 25, 465, and 587 on Droplets by default. Its SMTP guidance recommends using an email service provider. Port 2525 is a common alternate submission port, but it is not listed as a guarantee by DigitalOcean; test connectivity from the actual Droplet.
- Vultr blocks outbound TCP port 25 by default on new Compute instances. Vultr says you can request an unblock, subject to review. Its blocked-port list distinguishes that default outbound block from inbound firewall rules.
- Brevo supports SMTP submission on ports 587, 465, and 2525. Its port guide recommends starting with 587 and using 2525 when a network blocks it.
Port 587 normally uses STARTTLS. Port 465 starts with TLS immediately. Port 2525 is a non-standard but widely used alternative; both the relay and the hosting network must support it.
Give apps one stable mail path
For a VPS running several applications, a useful pattern is:
application → local Postfix → authenticated SMTP relayThe applications use one internal mail endpoint. Postfix centralizes the relay credentials, queue, and logs, while the provider handles delivery beyond the VPS. In our setup, the mail server’s Postfix sends outbound messages through Brevo over TLS.
An SMTP response saying a message was queued means the relay accepted the handoff. It does not by itself prove the recipient’s mail server accepted the message, or that the email reached the inbox. Check the relay’s event log for the later delivery result.
Authenticate the sender domain
A correct SMTP password does not automatically authorize every From address. Brevo can reject a sender that has not been verified, even when the SMTP connection and authentication work.
Verify the sender or authenticate the sending domain in the relay’s dashboard. Publish the DNS records it provides for DKIM, and keep SPF and DMARC consistent with every service that sends as the domain. Brevo’s domain authentication guide covers its records and verification steps.
A DMARC record with
p=noneasks receiving systems for no specific action when a message fails DMARC. It is useful while checking reports; add aruadestination if you want aggregate reports. Move to quarantine or reject only after legitimate senders are passing. See the DMARC specification.Read delivery events carefully
“Sent” usually describes the relay’s handoff. “Delivered” means the recipient’s mail system accepted the message, though it still does not guarantee inbox placement. “Loaded by proxy” in Brevo is associated with Apple Mail Privacy Protection fetching the tracking pixel; it is not proof that a person opened the message. Brevo explains that event here.
IMAP is a separate path again. A timeout on port 993 points to connectivity or filtering before IMAP authentication; SMTP relay settings cannot fix it. In our case, Fail2ban had blocked the Mac’s IP after failed authentication attempts.
The practical choice
For application notifications, use an authenticated relay over a port the VPS allows. Keep Postfix as a stable internal endpoint when multiple apps need to send mail, authenticate the From domain with DNS, and use the provider’s event logs to distinguish relay acceptance from recipient delivery. Reserve direct-to-MX delivery for cases where you are ready to manage outbound port 25, IP reputation, and deliverability yourself.
39:0· Updated: Nov 19, 2026, 09:36 AM