Determine which network interface card (NIC)Postfix is running on?
The netstat command allows querying of IP addresses and interfaces that the Postfix daemon is listening. By default, Postfix listens on TCP port 25.
By using the netstat and grep commands for port 25, IP addresses that Postfix are listening to can be found by issuing the following command:
netstat -an | grep :25 | grep tcp
Example:
$ netstat -an | grep :25 | grep tcp
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
Here, Postfix is only listening on the IP address 127.0.0.1.
In order to list each interface’s assigned IP address, issue the following command as root:
ifconfig -a
One Response to “Determine which network interface card (NIC)Postfix is running on?”
Leave a Reply
You must be logged in to post a comment.
1improvements…
…