Port 25 (TCP) โ€” SMTP

Mail transfer between servers.

๐Ÿ”’ Runs locally โ€” your input never leaves this browser tab

Port
25
Protocol
TCP
Service
SMTP
Internet exposure risk
Medium

Make sure it is not an open relay. Many cloud providers block outbound 25 by default.

Check if port 25 is open

On the server, see what is listening:

sudo ss -tulpn | grep ':25 '

From another machine, test reachability:

nc -zv your-server.example.com 25

Block port 25 from the internet

With UFW (Ubuntu/Debian):

sudo ufw deny 25

With firewalld (RHEL/AlmaLinux/Rocky):

sudo firewall-cmd --permanent --remove-port=25/tcp && sudo firewall-cmd --reload

โ† All common ports