Port 25 (SMTP)

TCP

Simple Mail Transfer Protocol — SMTP listens on port 25 by default.

What is Port 25?

Port 25 is the default port for SMTP (Simple Mail Transfer Protocol), the standard protocol for sending email across the internet. Defined in RFC 5321, SMTP handles the routing and delivery of email messages between mail servers.

SMTP on port 25 operates as a push protocol — mail clients and servers use it to send outgoing messages to the recipient's mail server. When you send an email, your mail server connects to the recipient's server on port 25 to deliver the message through a series of commands.

Many ISPs block outbound port 25 traffic to prevent spam. For email submission from mail clients, port 587 (with STARTTLS) or port 465 (with implicit TLS) are preferred. Port 25 is now primarily used for server-to-server mail relay rather than client-to-server submission.

Port 25 Security

SMTP on port 25 should be secured with appropriate access controls and monitoring. Ensure the service is only accessible from trusted networks by configuring firewall rules to restrict access. If the protocol supports encryption, enable TLS/SSL to protect data in transit.

Regularly update SMTP to the latest version to patch known vulnerabilities. Monitor port 25 for unauthorized access attempts and implement rate limiting where possible. Follow the principle of least privilege when configuring access permissions.

How to Check Port 25

To check if port 25 is open on a remote host, use nmap: 'nmap -p 25 hostname'. For a quick TCP connection test, use: 'telnet hostname 25' or 'nc -zv hostname 25'. On Windows PowerShell, use: 'Test-NetConnection -ComputerName hostname -Port 25'.

To check if port 25 is listening on your local machine, use: 'netstat -tlnp | grep 25' on Linux, or 'ss -tlnp | grep 25'. On Windows, use: 'netstat -an | findstr 25'. For a comprehensive scan, use: 'nmap -sV -p 25 hostname' to detect the service version running on the port.

Related Ports

Frequently Asked Questions

What is port 25 used for?

Port 25 is the default port for Simple Mail Transfer Protocol (SMTP). It is used for smtp communication using the TCP protocol.

Is port 25 TCP or UDP?

Port 25 uses TCP. TCP is used because smtp requires reliable, ordered data delivery.

Should port 25 be open?

Port 25 should only be open if you are actively running SMTP. Close unused ports to reduce your attack surface. If needed, restrict access to trusted IP addresses using firewall rules.

How do I check if port 25 is open?

Use 'nmap -p 25 hostname' to scan remotely, or 'netstat -tlnp | grep 25' to check locally on Linux. On Windows, use 'Test-NetConnection -Port 25 hostname' in PowerShell.

How do I secure port 25?

Secure port 25 by restricting access with firewall rules, using encryption (TLS/SSL) where supported, keeping SMTP updated, using strong authentication, and monitoring for unauthorized access attempts.

🔍 Check Your IP Address

While you're here, find out your public IP address, location, and ISP details instantly.

Check My IP →