SMTP server on VPS and port 25 opening
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

SMTP server on VPS and port 25 opening

by
Pawel
Created on 2025-12-10 13:59:07 in Virtual Private Servers

I would like to setup an SMTP and IMAP server on my VPS machine. I setup appropriate DNS records, installed Postfix and Dovecot and... it seems that I am unable to reach my machine's port 25 from the outside and therefore I am not able to send mails to my server.

I double checked that port 25 is opened locally (I can invoke telnet localhost 25 from the server) and double checked UFW and iptables rules. I also asked OVH support about blocking the incoming port 25 - they claim that "OVHcloud does not block any ports". However telnet to my machine's 25 port gives me 'Connection timed out' which suggests that the problem is with OVH and not my machine.

Have anyone tried to do the same? BR


3 Replies ( Latest reply on 2025-12-11 09:27:08 by
fritz2cat 🇧🇪 🇪🇺
)

Hello,

OVH does not block any ports. Can you telnet to it, using the public IP address instead of 127.0.0.1 ?

Moreover you complain about incoming connections, so there is a high chance that the culprit is your own firewall.