SMTP server on VPS and port 25 opening

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

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.

I can telnet to my machine using the public IP address only from within this machine itself. Using my laptop (or any other machine) I am not able to telnet to it and the error is the connection timeout.
I learned that this is probably not related related to my firewall as I would have another type of error in such a case which is "Connection refused"

Please check your OVH management portal, section Network > IP addresses.

Double check if you have not activated the firewall there ?