Skip to content

Instantly share code, notes, and snippets.

@jasperf
Last active May 3, 2024 02:49
Show Gist options
  • Save jasperf/f8ec0d44b4ad9e195794d210971161c9 to your computer and use it in GitHub Desktop.
Save jasperf/f8ec0d44b4ad9e195794d210971161c9 to your computer and use it in GitHub Desktop.
Check SMTP Port 25 for outgoing and incoming traffic for Mail send out via SMTP or Sendmail (PHP)
# To check the port 25 , you can use:
# netstat (TCP and UDP):
netstat -plntu | grep ':25'
# ss (TCP and UDP):
ss -lntu | grep ':25'
# nmap (TCP):
nmap -sT -O localhost | grep 25
# lsof (TCP and UDP):
lsof -i:25
# telnet
telnet smtp.transip.email 25
Trying xxx.xxx.xxx
Trying xx.xxx.xxx...
telnet: Unable to connect to remote host: Connection refused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment