0

I have ssh access to my Linux server and I want to check whether port 25 open or not.

I discussed with hosting service provide and they said port 25 is open.

I checked using PHP script for port 25 and it says it is open.

I want to know how to check using command on linux server like in Windows I can use telnet example.com 25

Any idea?

Zanna
  • 69,223
  • 56
  • 216
  • 327
Zohaib Khan
  • 307
  • 2
  • 5
  • 10

1 Answers1

1

You should check it from your home PC or another computer than your Linux server. you can use several tools like telnet, curl, netcat (nc) etc.

curl:

$ curl ip_or_domain:25

netcat:

$ nc ip_or_domain 25

in any case if you got 220 hostname SMTP Mail Server this shows that the port is open.

Ghasem Pahlavan
  • 1,805
  • 14
  • 20