Hi,
I installed a fresh CyberPanel on my Ubuntu 22.04 server running on a Hyper-V virtual machine. The server is hosted at my office, and I have a static IP from my ISP (StormFiber).
Everything seemed fine, the server is live, and CyberPanel is working. However, when I send emails from the server, they get deferred with this error:
connect to alt4.gmail-smtp-in.l.google.com[142.251.190.26]:25: Connection timed out
To troubleshoot, I tried manually connecting to Gmail’s SMTP on port 25 from the server using telnet:
root@*********** :/# telnet smtp.gmail.com 25
Trying 2404:6800:4003:c04::6d...
Connected to smtp.gmail.com.
Escape character is '^]'.
220 smtp.gmail.com ESMTP ...
451-4.4.2 Timeout - closing connection.
451-4.4.2 For more information, go to
451 4.4.2 https:// support.google.com/a/answer/3221692
Connection closed by foreign host.
So the server can connect but Gmail closes the connection with a timeout error.
Here’s what I’ve checked so far:
- DKIM, SPF, and DMARC records are correctly set up and verified on MXToolsBox
- Port 25 is open and listening on the server (verified with
ss -tlnp | grep :25) - Port 25 is open from outside according to online port checkers
- From my personal Windows PC on the same ISP connection, I can connect to Gmail SMTP on port 25 without issue (using PowerShell
Test-NetConnection)
Still, emails from CyberPanel/Postfix don’t get through and are deferred with connection timeout errors.
I’m not sure if the ISP is blocking or throttling outbound SMTP despite port 25 being open, or if there’s some other network or firewall issue.
Would appreciate any help or suggestions on what to check next or how to fix this.