Free tech learning for everyone, from basics to pro

Port 587: SMTP submission (Mail submission for email clients)

What port 587 (TCP) does, the security risks of leaving it open, and how to secure and test it.

Port587
TransportTCP
ServiceMail submission for email clients (SMTP submission)
EncryptedYes (STARTTLS)

What is port 587?

Port 587 is where email apps and devices send outgoing mail to their own mail server, after logging in. Port 465 is an alternative that uses TLS from the start.

Common uses

  • Outlook, phones and apps sending email
  • Scanners, printers and websites sending email through Microsoft 365 or Google Workspace

Security risks

  • Stolen mailbox passwords used to send spam or phishing
  • Password-spraying attacks

How to secure port 587

  • Require authentication and TLS
  • Enable multi-factor authentication and block legacy authentication
  • Use app passwords or OAuth for devices that send mail

How to check if port 587 is open

WhereCommand
Scan from another machinenmap -p 587 <host>
Windows (PowerShell)Test-NetConnection <host> -Port 587
Linux (what is listening)sudo ss -tulpn | grep :587
Windows (what is listening)netstat -ano | findstr :587

Only scan systems you own or have permission to test.

Related ports

Frequently asked questions

What is port 587 used for?

Port 587 (TCP) is used by Mail submission for email clients (SMTP submission). Port 587 is where email apps and devices send outgoing mail to their own mail server, after logging in.

Is it safe to open port 587?

Only if the service needs to be reached and is configured securely. Require authentication and TLS.

How do I check if port 587 is open?

From another computer, run nmap -p 587 followed by the host address. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 587.

Learn more: TCP, UDP and ports explained and firewall basics.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown