How do you check SMTP port is open or not in Linux?

How do you check SMTP port is open or not in Linux?
Answer
If you have access to the system and you want to check whether it’s blocked or open, you can use netstat -tuplen | grep 25 to see if the service is on and is listening to the IP address or not. You can also try to use iptables -nL | grep <port number> to see if there is any rule set by your firewall.
 

Tìm kiếm

Back
Top