CentOS: what is blocking the port?

6,358

Solution 1

Verify with netstat -ln that the service is actually listening on 192.168.2.9 or 0.0.0.0 (all interfaces) and not just local host.

Verify iptables isn't running (iptables -L -n -v no results)

Check /etc/hosts.deny for any access rules that may be in play.

Check the logs just to make sure there isn't a mail configuration specific reason.

Verify you can ping that host from another on the same subnet, and that you can telnet to port 25 on that box.

That should cover it.

Solution 2

If you're sure that there are no iptables firewall rules loaded (iptables -vnL)

Run netstat -tanop to verify that postfix is listening on all network interfaces (0.0.0.0) or (192.168.2.9) not just local.

Regards K

Share:
6,358

Related videos on Youtube

kdl
Author by

kdl

Updated on September 17, 2022

Comments

  • kdl
    kdl almost 2 years

    I am rather new to Linux and trying to set up a MailScanner box. I went as far as to set it up with postfix and succeeded sending a test message via it from the local console.

    However, when I try to connect to port 25 on the box IP which is 192.168.2.9, I get connection refused message. Running nmap localhost shows open port 25, however nmap 192.168.2.9 shows no open port 25. IPtables and selinux are disabled.

    How can I determine what is blocking the port and how do I unblock it?

    Thanks.

  • Govindarajulu
    Govindarajulu over 14 years
    I don't think postfix has support for tcp_wrappers