View connections to sendmail or port 25

Head Surfer
October 9th, 2008

Login to the server via ssh

netstat -an | grep “:25 “| grep ESTABLISHED | awk ‘{print $4″t”$5}’ | sort -n -k1

You can also view connections to the server on other ports like port 80 which is usually apache:
netstat -an | grep “:80 “| grep ESTABLISHED | awk ‘{print $4″t”$5}’ | sort -n -k1

or pop:
netstat -an | grep “:110 “| grep ESTABLISHED | awk ‘{print $4″t”$5}’ | sort -n -k1

How To Host A Website is a Web Hosting Review service. We provide web hosting reviews for best hosting, server hosting, cheap hosting and more as we answer the most important website hosting question - How To Host Website pages successfully.

Words visitors used that found this page online:

Disclosure: We are a professional review site that receives compensation from the companies whose products we review. We are independently owned and the opinions expressed here are our own. Please contact us if you would like your web hosting company considered for a web hosting and support review.
Back to top Copyright 2012 © How To Host A Website, An OS Hosting, LLC Company