How do I determine which network interface card (NIC) Sendmail is running on?

Updated -

The netstat command allows querying of IP addresses and interfaces that the Sendmail daemon is listening. By default, Sendmail listens on TCP port 25.

By using the netstat and grep commands for port 25, IP addresses that Sendmail are listening to can be found by issuing the following command:

# netstat -an | grep :25 | grep tcp

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.