Last active
May 3, 2024 02:49
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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