Port 25 (SMTP) — What It Is and How to Use It

Port 25 is the standard port for Simple Mail Transfer Protocol (SMTP), primarily used for relaying email between mail servers. It facilitates the transfer of email messages from one server to another, enabling the delivery of emails across the internet.

Last updated: 2026-03-02

Port Number 25
Protocol SMTP

Common Use Cases

  • Mail server to mail server communication (relaying email)
  • Submitting email from a mail client to a mail server (though often superseded by port 587)
  • Automated email sending from applications (e.g., notifications, alerts)

Check if Port 25 is Open

netstat -tulnp | grep :25
Get-NetTCPConnection | Where-Object {$_.LocalPort -eq 25}
⚠️ Security Note: Leaving port 25 open without proper authentication and authorization can allow spammers to relay unsolicited emails through your server. It's crucial to implement security measures like SPF, DKIM, and DMARC to prevent abuse.

Related Ports

Frequently Asked Questions

Is port 25 dangerous to leave open?

Yes, leaving port 25 open without proper security measures is dangerous. It can be exploited by spammers to relay unsolicited emails, potentially blacklisting your server and damaging your reputation. Ensure proper authentication and authorization are in place.

What service uses port 25?

The primary service that uses port 25 is the Simple Mail Transfer Protocol (SMTP). It's the standard port for email relaying between mail servers, although modern mail submission often uses port 587 with authentication.