Port 25: SMTP

Mail transfer between mail servers. Must be open inbound on a mail server. Outbound port 25 from VMs is how spam leaves hosting networks, so many providers block it by default.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Examples:

Ports

1 of 41

Port Lookup

Port 25 at a glance

Port25
ProtocolTCP
ServiceSMTP
Open to the Internet?Yes, if you run this service publicly
See What Is Listeningss -lntup | grep ':25 '
Test From Outsidenc -zv your-server 25
Block with UFWufw deny 25/tcp
Block with nftablesnft add rule inet filter input tcp dport 25 drop

SMTP uses TCP port 25. Mail transfer between mail servers.

Must be open inbound on a mail server. Outbound port 25 from VMs is how spam leaves hosting networks, so many providers block it by default.

Open port 25 only on servers that run SMTP, and keep the software patched: public services are scanned within minutes of going online.

Questions

What is port 25 used for?
SMTP. Mail transfer between mail servers.
Is it safe to open port 25?
Yes, if you run this service publicly. Must be open inbound on a mail server. Outbound port 25 from VMs is how spam leaves hosting networks, so many providers block it by default.
How do I check if port 25 is open?
On the server, ss -lntup | grep ':25 ' shows what is listening. From another machine, nc -zv your-server 25 shows whether the firewall lets it through.
How do I block port 25?
With UFW: ufw deny 25/tcp. With nftables, add a drop rule for dport 25 in your input chain.

Abuse from open ports on your VMs?

Frabs spots amplification, scans and floods leaving any VM and stops them, without touching your firewall.